Convert Dynamodb Item To Json Java

It enables Python developers to create, configure, and manage AWS services, such as EC2 and S3. This process is not 100% accurate in that XML uses different item types that do not have an equivalent JSON representation. It drops all JSON special symbols and leaves just text. It's the ease of converting Object notations to JSON and vice versa makes it really compelling. JSON (JavaScript Object Notation) Tutorial - GSON & Jackson (FasterXML). stringify the result and return the JSON object. convert DynamoDb JSON to regular JSON javascript objects - value. Next: Convert JSON to Java Object and Java Object to JSON in Java using Jackson Leave a Reply. If you’re using an earlier version of Python, the simplejson library is available via PyPI. String src) Parse a String representing a json, and return it as a JsonNode. Screencast #14: Post JSON to spring REST webservice. Convert Java object to JSON 3. In this model, data is optimized for intuitive development and horizontal scalability. JSON array is an ordered collection of values, which are enclosed within brackets e. Any help would be appreciated, thank you. JsonNode: toJson(java. --liquibase formatted sql--changeset nvoxland:1 create table person (id int not null primary key, firstname varchar (80), lastname varchar (80) not null, state varchar (2));--changeset nvoxland:2 alter table person add column username varchar (8)--changeset nvoxland:3 create table state AS SELECT DISTINCT state AS id FROM person WHERE state IS. fromJson() method. The tutorial will guide you how to use Jackson for converting Java object to Json and vice-versa. As its name suggests, JSON is derived from the JavaScript programming language, but it's available for use by many languages including Python, Ruby, PHP, and Java and hence, it can be said as language-independent. This usually happens when mixing SOAP and REST services with XML and JSON. Are you a Mobile or IoT developer? Couchbase lets you seamlessly move data from the datacenter to the cloud and the edge. Using the AWS DynamoDB Low-Level Java API – Spring Boot Rest Application May 18, 2019;. CouchDB is also a clustered database that allows you to run a single logical database server on any number of servers or VMs. x-jdk15 is compatible with JDK 1. Net Framework 4. In many applications it is required to map JSON to java object and vice versa so that the application can make use of it. Here is a example which shows this easy type conversion from JSON to Javascript objects in APEX. ObjectMapper'. 5 only) Using this object we serialize and deserialize objects in C#. JavaScript and JSON differences. Many APIs work with this format to provide and receive data, as we had seen in the post about the Cisco NX-API on Nexus 5500. There are two ways in which Gson library can be used to convert json string to an object. This chapter describes how Oracle TopLink supports the ability to convert objects to and from JSON (JavaScript Object Notation). How do I convert a JSON file to a Windows PowerShell object? Use the Get-Content cmdlet with the Raw parameter: Get-Content -Raw -Path. I am trying to convert it. JSON-B is a standard binding layer for converting Java objects to/from JSON messages. Questions: I have create a question to replace the name of the DynamoDB table dynamically using the environment variables here. We are using Jackson library to convert Java Map to JSON array so let's add below Jackson dependency to your project's classpath or pom. Nowadays, JSON is the most widespread format to exchange data on the Web. It's a standard text-based format which shows structured data based on JavaScript object syntax. Gson is a Java library that can be used to convert Java Objects into their JSON representation. This example will demonstrate how to convert a json array to a java ArrayList using gson JSON parser. Primarily, JSON is built on two structures: A collection of name/value pairs. I have tried to deserialize a JSON array and convert the result into a dotnet object using the JavaScriptSerializer List styleList = (List;)jSerializer. Method 3: Using Gson library Gson is a google library that can also be used for conversion of a json string to object in java and vice-versa. If you like this tutorial and want to learn more about how to deal with JSON in Java, please checkout following amazing Java JSON tutorials : How to parse large JSON document in Java? (code example) How to read JSON String using json-simple library? (code example) How to convert JSON String to Java Object with example?. Bagi kalian developer Android pasti sudah sering sekali berinteraksi dengan Web Services atau API, dan dengan bantuan library network yang paling canggih, a. JSON-B will leverage JSON-P and provide a conversion layer above it. But where this is happening as I wasn't able to find it in any of xml file? I want to change parsing logic as this mapper is using SimpleDateFormat to convert string to date but I want to use my customer format. Compares this object to the specified object. Fortunately this is relatively simple – you need to do this first:. What can you do with JSON TO JAVA CONVERTER ? This tool will help you to convert your JSON String/Data to JAVA Class Object ; To Save and Share this code, use Save and Share button. This is a reference implementation. In this tutorial you will learn how to convert json to xml or xml to json in java. Using the com. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc. Convert java Object to JSON string and RENAME PROPERTIES using com. For converting, you need to get a com. JSON (JavaScript Object Notation) is a lightweight data-interchange format. Any help would be appreciated, thank you. ObjectMapper; ObjectMapper mapper = new ObjectMapper(); String jsonString = mapper. Gson g = new Gson(); Player p = g. How to convert JSON to JAVA Objects i. Jackson maven dependency. I have a JSON string (of type object) as follows: {"field1":1,"field2":"abc"} and I would like to convert it to a Java Object[2], where the 1st element is new Integer(1) and the 2nd element is new String("abc"). Read the first item, create a JSON object to put in dynamoDB, send out put request; Upon successful put, wait half a second, send out second push. The output of the transformation should be a org. Once you have the JSON schema, creating the new table is super simple. i want to use webservices which is created from ycommercewebservices template. NET / Getting Started / Convert any json string to an array or object in c# Convert any json string to an array or object in c# [Answered] RSS 2 replies. Create, write and read in/from JSON file using java: Here, we are going to create two java programs, 1) program that will write content in JSON file and 2) program that will read content from the JSON file. Submitted on - 2016-12-04 13:33:32. implements an output stream in which the data is written into a byte array. The Catalog class is the same as earlier. Methods in org. Other interesting posts you may like. How to convert a JSON array into a java Object, then allocate each object to it own respected file? I keep getting the file in Byte. e deserialization using GSON 3. XStream currently delivers two drivers for JSON to Object ocnversion: JsonHierarchicalStreamDriver: This does not have an additional dependency, but can only be used to write XML. [] and separated by a comma. First, If I want to convert a Map to JSON – Such as in AJAX calls; If I want to convert a JSON to a Map – If any third party API returns JSON to my Java method; 1. Gson API is easy to learn and implement, what we need to know are the following two methods:. This example uses MOXy along with JAXB to unmarshal JSON to Java object. I manipulate the string in JavaScript to generate custom HTML. Same Writeup tutorial at https://www. Below is an example of how this can be achieved. Best way to Deserialize JSON String to Java Object do is a generator that creates an overlay for that pojo and a utility class to convert a json string to the. Are you a Mobile or IoT developer? Couchbase lets you seamlessly move data from the datacenter to the cloud and the edge. One reason it is cool is that it will convert a Java Script Object Notation (JSON) string into a custom Windows PowerShell object. More and more web service providers seem to be interested in offering JSON APIs beneath their XML APIs. Questions: I am reading the backup DynamoDB S3 bucket which has format for DynamoDB Json. Why java api not allow this and how can i solse this problem?. The Catalog class is the same as earlier. The specifics will vary a bit by language. xml file and paste the following code inside the project node. The latest Amazon DynamoDB update added support for JSON data, making it easy to store JSON documents in a DynamoDB table while preserving their complex and possibly nested shape. Use this tool to convert JSON into CSV (Comma Separated Values) or Excel. And, since Jackson wants to map each XML element to a JSON node, it doesn't support mixed content. static java. But created very simple Java program which read JSON data from file and sends it to REST service. NET object property names to the JSON property names and copies the values for you. It's a standard text-based format which shows structured data based on JavaScript object syntax. Excel-jSon-Excel in one line of code Before we get started though, I set myself the challenge that these classes should be able to populate an entire worksheet from a web service, or to convert an entire worksheet into jSon in one line of code. 1 and upwards. toAttributeValues(Item). This tutorial introduces about JSON Annotations via Jackson JSON Annotation Example. * @throws JSONException if o fails to parse. First, create a JavaScript string containing JSON syntax:. json "dynamodb-local-run": "docker-compose up", You can test in by npm run dynamodb-local-run. Jackson provides classes that can be used to convert a Java Object to JSON and back. You can convert JSON String to Java object in just 2 lines by using Gson as shown below. Currenly, I’m creating an application which does some JSON communication. Convert JSON to Java object. jwkSet" Java system property. Hello, I'm trying to learn how to convert a given object to an XML or JSON representation. JsonNode json) Convert a JsonNode to its string representation. The output of the transformation should be a org. Before jumping into code examples, lets define a simple pojo class which we will use in this example for conversion purpose. Because of that, I cannot use the SAP's method to convert xml into JSON. Simply and lightly for Node. Note: Refer How to convert java object to json string using Gson APIs? page for dependent libraries. A special case of this prohibition is that it is not permissible for a map to contain itself as a key. toJSON() methods encode binary data in base-64 and map DynamoDB sets to JSON lists. JavaScript Object Notation (JSON) is a lightweight, text-based, language-independent data interchange format. I don't agree with this behavior being normal. Hi Sushant i have one solution for this problem. Database support for blobs is not universal. the function is getting item from dynamodb and returns it as response. How to write JSON data to a file in Java : JSON or javascript object notation is a simple form to represent complex data. Rename the component to “Convert JSON to Object” and configure it as shown below. I want to convert a List of Map to json String format and write it in one json file in the following format. quicktype generates types and helper code for reading JSON in C#, Swift, JavaScript, Flow, Python, TypeScript, Go, Rust, Objective-C, Kotlin, C++ and more. parse We can convert JSON to JavaScript object using JSON. loads() method. implements an output stream in which the data is written into a byte array. There is no concept of “attributes” in the JSON format. The specifics will vary a bit by language. Its simplicity and the ease of converting XML to JSON makes JSON ultimately more adoptable. If you are a new to the AWS SDK for Java or starting a new project, you should start with version 2. The step by step flow of the program are attached below. json to the Movies table in the us-west-2 region. JSON array is an ordered collection of values, which are enclosed within brackets e. #Introduction In this journal, we will be having a look at how we can easily convert JSON to Java POJO. Keep in mind that for the insert action, the. Kotlin – Convert Object to/from JSON with Gson Posted on May 26, 2017 in Basic Practice This tutorial shows you how to use Gson to convert Kotlin object to/from JSON. Category - JAVA/J2EE. code can be added in tags Cancel reply Recent Posts. Description. Often we need to log or print objects and variables to the console/logs for debugging. The expressive object model can be done in either, I think that point is outdated or just wrong. 0 along with Asp. i am working with Spring MVC. Java Numbers are * inserted without modification and all other values are inserted * as their toString(). Simple example including embedded object. hl7-webapp: HTTP listener used convert transformed HL7 messages in XML format to JSON for insertion into Amazon DynamoDB #####For each Mirth Channel using these libraries, you must include this library resource in the channel as well as any destinations. JSON can be mapped more easily to object-oriented systems. This is what ended up working. It also show you how to write JSON string to a. I have tried the following:. XML is object-oriented. To use the data that I have extracted from the. This enables you to more easily get JSON-formatted data from, and insert JSON documents into, DynamoDB tables. On the previous example, How do I convert object into JSON? we convert object into JSON string. Access Amazon DynamoDB data as an ODBC data source in Cognos Business Intelligence and create data visualizations in Cognos Report Studio. fromJson() method. json) like mentioned above to deserialize json. Are you a Mobile or IoT developer? Couchbase lets you seamlessly move data from the datacenter to the cloud and the edge. * @return A Java Object representing o or the String "null" * if o is null. Create a JSON object containing the parameters needed to add an item, which in this example includes the name of the table and both the key name and value for the item you're deleting. Build a simple distributed system using AWS Lambda, Python, and DynamoDB Written by Mike Watters , November 16, 2015 We have implemented a number of systems in support of our Erlang -based real-time bidding platform. FME is data conversion and integration technology that helps you load JSON from any source into Amazon DynamoDB in an automated way. /** * Convert a JSON string to pretty print version * @param jsonString * @return */ public static String toPrettyFormat(String jsonString) { JsonParser parser = new JsonParser(); JsonObject json = parser. Light reversible converter JavaScript value to DynamoDB attrbute for Node. A JSON document may contains text, curly braces, square brackets, colons, commas, double quotes, and maybe a few other characters. Convert Excel To JSON In Java Example Jerry Zhao June 9, 2018 23 A reader of article Read / Write Excel Data Using Apache POI ask me a question about how to read excel sheet data and write those data to a JSON file. 04/10/2017; 13 minutes to read +4; In this article. Convert json to a java object and vice versa: Android; Convert List (ArrayList) to Array and Vice-Versa; Convert Map (HashMap) to List; Convert String to char array; Convert the byte array into an integer array; Converting Milliseconds to Hours, Minutes and Seconds; Copy To the Clipboard From the Windows Command Prompt; Country JSON data; API. Screencast #14: Post JSON to spring REST webservice. If any individual item in a batch exceeds the 64 KB item size limit. Learn to use jackson objectmapper to populate java object from json string and write json string from java object. You can control what goes inside the json from the java object and you can also control the names of the json. Convert Java Object To / From JSON, Jackson Example explains about converting a Java Object to JSON string, JSON string to Java Object Using Jackson JSON library. Use the FOR JSON clause to simplify client applications by delegating the formatting of JSON output from the app to SQL Server. All you need to do is annotate your java class in a few places, and the mapper takes care of getting the objects in and out of the database. Learn more. JSON (JavaScript Object Notation) is slowing becoming a great way to transmit data across platforms. If you retry the batch operation immediately, the underlying read or write requests can still fail due to throttling on the individual tables. If you like this tutorial and want to learn more about how to deal with JSON in Java, please checkout following amazing Java JSON tutorials : How to parse large JSON document in Java? (code example) How to read JSON String using json-simple library? (code example) How to convert JSON String to Java Object with example?. The data structure in my MongoDB is not too complicated and can be convert to key-value pair. If you are one of them who wants to export JSON from SQL Server or any other RDBMS like MySQL, Oracle then you can easily output complex JSON using any of the following components. JAXB did not know how to convert the some of the XML enumeration values to Java enum values so it made the field correspond to the base type of the enumeration. Converting JSON to/from Java Objects using JACKSON API Created on: June 27, 2015 | Last updated on: September 30, 2017 websystiqueadmin This post explains Jackson data-binding , which is a common approach when dealing with JSON using Jackson API in your Java projects. 5, includes support for Enums in JSONArray and JSONObject. In this tutorial, we help you how to convert java object to JSON using Google Gson with Eclipse IDE How to convert Java object to JSON using Google Gson Tutorial - Learning to Write code for Beginners with Tutorials. JSON: json is a java script object notation which used as a open standard format to transmit or communicate between server and client or web application. JSON methods, toJSON Let’s say we have a complex object, and we’d like to convert it into a string, to send it over. Converting a java object to json. Type or paste a JSON string into the text area above, then click the Generate button to get your result. It automates the conversion of JSON to a database, text, or Hadoop. json library. Let’s now see how to convert String to JSON Object. For example, an application written in ASP. JSON Serialization Pickling Shelving Java Object Serialization Accessing HDF from Python using PyTables Working with Databases 13 Chapter 14 Partitioning Retry Policies Amazon DynamoDB - Part I Amazon DynamoDB - Part II Amazon DynamoDB - Part III Amazon DynamoDB - Part IV Amazon DynamoDB - Part V Amazon DynamoDB - Part VI. The Jackson ObjectMapper class (com. x to convert Json to Java Object and Java Object to Json. It was derived from JavaScript, but as of 2017 many programming languages include code to generate and parse JSON-format data. Practically we can use this library to convert any object in Java and it is quite simple. This site uses cookies for analytics, personalized content and ads. Submitted by Jyoti Singh, on January 31, 2018 JSON is in an array format which holds the key-value pairs. The responses that we get from an API is data, that data can come in various formats, with the most popular being XML and JSON. Uploading JSON files to DynamoDB from Python Posting JSON to DynamoDB through the AWS CLI can fail due to Unicode errors, so it may be worth importing your data manually through Python. YAML vs JSON. This tutorial assumes that you've already gone through our Java getting started tutorial and are familiar with how our Java SDK works. Any field can contain zero or more values by default, however, all values in the array must be of the same datatype. HashMap? (This seems like a trivially easy thing). 1)firs set the class path to gson-2. Convert JSON to Map Object in Java. 2 thoughts on “ AWS DynamoDB – Write Spark (Scala) Dataframe to DynamoDB ” Stephen Boesch March 7, 2019. Currenly, I’m creating an application which does some JSON communication. I'm trying to change this Json into a Java Object that I can use in an activity as a Java step. Through FME Desktop’s intuitive graphical user interface quickly create workflows that convert tabular CSV data into JSON documents without writing any code. java object into json, create json in java, convert java object in json, display json in java, parse json in java, crete json object in java, convert java object into json in jsp To converting a java object in JSON we need to user some 3rd party API here I'm using "gson. Then from this JSON data, a POJO containing JAXBElement has to be unmarshalled. One reason it is cool is that it will convert a Java Script Object Notation (JSON) string into a custom Windows PowerShell object. By Websparrow | March 31, 2017 | Updated: July 20, 2019 In this Java tutorial, we are going to parse or read the nested JSON object using the library JSON. Questions: I am reading the backup DynamoDB S3 bucket which has format for DynamoDB Json. 04/10/2017; 13 minutes to read +4; In this article. Description. So you can use it without any extra installation in Android projects. This feature can be used to implement custom decoders. Using the com. Just check that you have the sample file in this path to execute this code. =, > , <, != ) for date search. In a previous article, we learned how to create DynamoDB Tables using Java. In this video, we will learn how to convert Java Object to JSON using the Jackson library. Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, PHP, Python, Bootstrap, Java and XML. JSON - JavaScript Object Notation Format introduction: In computing, JavaScript Object Notation or JSON is an open-standard file format that uses human-readable text to transmit data objects consisting of attribute-value pairs and array data types (or any other serializable value). Java dynamodb to csv. Convert Excel To JSON In Java Example Jerry Zhao June 9, 2018 23 A reader of article Read / Write Excel Data Using Apache POI ask me a question about how to read excel sheet data and write those data to a JSON file. I am aware of the existence of BatchWriteItem so I guess a good solution would involve batch writing. The JSON object contains methods for parsing JavaScript Object Notation and converting values to JSON. A special case of this prohibition is that it is not permissible for a map to contain itself as a key. JSON to Java Code Generator Free code generator which converts your JSON (JavaScript Object Notation) schema into Java Object. If object_hook is also defined, the object_pairs_hook takes priority. str = u'' A sequence of Unicode characters (UTF-16 or UTF-32). View Notes - JSON methods toJSON. OPENJSON will find an array in this property and return one row for each JSON object (i. Json deserialization with Jackson and Super type tokens Datatables is a jquery plugin to present tabular information - it can enhance a simple table or can use a AJAX based data and present the information in a tabular form. Previous Next In this tutorial we will see that JSON format convert to the DBObject of MongoDB. Methods in org. json-lib-x. A serializer allows to convert a Json string to corresponding Java type and a deserializers allows to convert from Java to a JSON representation. Reading JSON means converting JSON into a Python value (object). In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array. With collections, maps, and user defined types you can make very rich object models in cassandra, with type safety. i am not able to convert json input to java object in my controller. This is a fairy new addition to the JavaScript language and is only supported in version 1. In this tutorial, we will show you how to use Gson to convert Java object to / from JSON. JSON Stand for JavaScript Object Notation. Original String { "id": { "s": ". XML is being widely adopted by the computer industry. The expressive object model can be done in either, I think that point is outdated or just wrong. How jsonschema2pojo maps format values to Java types:. JavaScript Object Notation (JSON) templates require a lot of punctuation with commas and quotation marks, along with square and curly brackets in different places. Gson in java Labels: google gson JSON JSON java. S All examples are tested by Gson 2. Java dynamodb to csv Silver. I need to parse this file and convert the data to DynamoDB item (com. Database support for blobs is not universal. For JSON to object marshalling, Camel provides integration with three popular JSON libraries:. Simply and lightly for Node. There are times instead of reading a JSON file, we will be getting a JSON response. MongoDB: Convert data getting from MongoDB into JSON Format Today I am working on one of the use case in which I have to integrate MongoDB with Oracle SOA and expose a rest service from Oracle SOA which output the response as a JSON String. Script namespace that does exactly that: System. In this tutorial, we will see how to convert JSON from/to java object using Jackson. Allows you to convert a JavaScript object into JSON string. XML: XML (Extensible Markup Language) is a mark-up language that defines the set of rules for encoding document in Human &Machine readable format. The buffer automatically grows as data is written to it. This is what ended up working. Read file to byte array and save byte array to file: 42. A serializer allows to convert a Json string to corresponding Java type and a deserializers allows to convert from Java to a JSON representation. All you need to do is annotate your java class in a few places, and the mapper takes care of getting the objects in and out of the database. Gson in java Convert java Object to JSON string and EXCLUDE/IGNORE PROPERTIES using com. Read the CSV file in a loop, mapping the desired columns to an object (or JSON-like string) with your desired structure and then insert the object into DynamoDB. But the different point is properties of POJO are annotated at running time. Please report bugs and send feedback on GitHub. In the tutorial, we show how to convert Json to XML and vice versa with Java language by examples. xml file and paste the following code inside the project node. What can you do with JSON TO HTML CONVERTER ? This tool will help you to convert your JSON String/Data to HTML Table ; To Save and Share this code, use Save and Share button. In this tutorial, we help you how to convert java object to JSON using Google Gson with Eclipse IDE How to convert Java object to JSON using Google Gson Tutorial - Learning to Write code for Beginners with Tutorials. Now, the AWS SDK for. On this Simple GSON Example explains about converting a Java Object to JSON string nad JSON string to Java Object Using Google Gson JSON library. Oct 9, '18. I had to remove the brackets in the 'data' area, and add eval(json) instead of just json. Read the CSV file in a loop, mapping the desired columns to an object (or JSON-like string) with your desired structure and then insert the object into DynamoDB. You can view the JSON after creating an item by selecting the item and then selecting the text view in the popup. We can also stream JSON encodings directly to os. Online tool to convert your CSV or TSV formatted data to JSON. See below JSON document, notice how OrderDate is saved as ISODate( … This will allow Query to use any standard comparison operator (e. jar and jackson-datab. 04/10/2017; 13 minutes to read +4; In this article. JSONArray and, following is the maven dependency to add library to your project. Online based tool to find json to java object structure of the declaration, it create's object with map,hashmap,list collections of java classes. Through FME Desktop’s intuitive graphical user interface quickly create workflows that convert tabular CSV data into JSON documents without writing any code. It is a language-independent format. Convert XML to JSON with JavaScript If you follow me on Twitter , you know that I've been working on a super top secret mobile application using Appcelerator Titanium. How to convert JSON string to Java object? This page shows how to convert JSON string to java object using Jackson's data binding. that would seem very weird. It was derived from JavaScript, but as of 2017 many programming languages include code to generate and parse JSON-format data. Converting DynamoDB JSON document to JSON object in Java. How can i convert this into as normal date like (mm/dd/yyyy)? You better understand like this. Hi, My name is Orr Weinstein, and I am a senior Product Manager on the AWS Lambda team. Overview Gson is a Java library that can be used to convert Java Objects into their JSON representation. What can you do with JSON TO JAVA CONVERTER ? This tool will help you to convert your JSON String/Data to JAVA Class Object ; To Save and Share this code, use Save and Share button. $(function { $('#jsonPData'). Description. Screencast #14: Post JSON to spring REST webservice. In the example below you can see how to convert an array into JSON string. Item) or normal JSON (I know how to convert normal JSON to Item) I found there are ways to convert Map to Item like the following posts: 1. Simple jQuery snippet to convert JSON string to an array of objects and then interate output of thier values. Java dynamodb to csv. Step 3: Using the "Apply to each" control, take the Compose output from Step 1 and input the key pairing I needed, "name" in this case. the function is getting item from dynamodb and returns it as response. json with parameters of type JSONObject static java. Create a simple Employee pojo. toJson() method. One considerable advantage of using a JSON API is its ability to provide cross-domain requests while bypassing the restrictive same domain policy of the XmlHttpRequest object. Any JSON parser can parse these strict mode representations as key/value pairs; however, only the MongoDB. You can fully automate the JSON to CSV conversion process with Flexter our free JSON converter. Call the deleteItem method of the DynamoDB service object. Lambda can help you pull items from your DynamoDB with functions while API Gateway exposes the functionality. That's all on How to convert JSON String to Java object using Jackson library. The XmlAdapter mechanism allows you to convert a class to another for the purpose of affecting the mapping (see: XmlAdapter - JAXB's Secret Weapon). This sample converts. Converts a data object to a string that is in the JavaScript Object Notation (JSON) format. The data structure in my MongoDB is not too complicated and can be convert to key-value pair. gt1329a Are you saying you have a JSON string, not the array literal you posted at first? If you have a string of JSON, you can use JSON. It is used as the syntax for storing and exchanging the data. Convert Android JSONObject/JSONArray to a standard Map/List. A common use of JSON is to read data from a web server, and display the data in a web page. You can use built-in Play library to convert Json data to Java POJO class easily.