Solved

parse a json object in JAVA

Posted on 2013-11-05
1
221 Views
Last Modified: 2013-11-10
Hello ,
  I have  this json object

{"groupOp":"AND","rules":[{"field":"m_level","op":"cn","data":"level"},{"field":"m_host","op":"cn","data":"IMP"}]}

Open in new window


How can I parse it using --> com.google.gson.Gson library

I need to extract all the keys and value..
0
Comment
Question by:SiemensSEN
1 Comment
 
LVL 11

Accepted Solution

by:
Manish earned 500 total points
ID: 39625080
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question