Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Value</strong></p> <pre><code>public class Value { private String name; private String type; private TypeInfo typeinfo; public String getName() { return name; } public String getType() { return type; } public TypeInfo getTypeinfo() { return typeinfo; } } </code></pre> <p><strong>MyGson</strong></p> <pre><code>public class MyGson { private String entityType; private List&lt;Value&gt; values; public String getEntityType() { return entityType; } public List&lt;Value&gt; getValues() { return values; } } </code></pre> <p><strong>TypeInfo</strong></p> <pre><code>public class TypeInfo { private String format; private String entry; private String filter; public String getFormat() { return format; } public String getEntry() { return entry; } public String getFilter() { return filter; } } </code></pre> <p><strong>Launcher</strong></p> <pre><code> Gson gson = new Gson(); MyGson myGson = gson.fromJson(str, MyGson.class); List&lt;Value&gt; values = myGson.getValues(); for(Value value : values){ str = value.getTypeinfo().getFormat(); printValues("format", value.getTypeinfo().getFormat()); printValues("entry", value.getTypeinfo().getEntry()); printValues("filter", value.getTypeinfo().getFilter()); //.... } } private static void printValues(String key, String data){ if(data != null){ System.out.println(key + ": " + data); } } </code></pre> <p>Output:</p> <pre><code>filter: LOV_ACCOUNT_TYPE filter: LOV_ACCOUNT_TYPE filter: LOV_ACCOUNT_STATUS format: dd/MM/yyyy hh:MM:ss </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload