Package org.platformlayer

Examples of org.platformlayer.UntypedItemJson


      Source src = new DOMSource(item.getRoot());
      String xml = DomUtils.toXml(src, 4);
      data = xml;
    } else if (o instanceof UntypedItemJson) {
      UntypedItemJson item = (UntypedItemJson) o;

      JSONObject root = item.getRoot();
      try {
        data = root.toString(2);
      } catch (JSONException e) {
        throw new IllegalStateException("Error formatting JSON", e);
      }
View Full Code Here

TOP

Related Classes of org.platformlayer.UntypedItemJson

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.