Examples of JsonParser


Examples of ca.uhn.fhir.parser.JsonParser

   * <p>
   * Performance Note: <b>This class is cheap</b> to create, and may be called once for every message being processed without incurring any performance penalty
   * </p>
   */
  public IParser newJsonParser() {
    return new JsonParser(this);
  }
View Full Code Here

Examples of cc.plural.jsonij.JSONParser

                                c = (char) target.read();
                                expressionStringBuilder.append(c);
                                predicateComponentBuilder.append(c);
                            }
                            value = predicateComponentBuilder.toString().trim();
                            JSONParser jsonParser = new JSONParser();
                            Value jsonValue = jsonParser.parseValue(value);
                            target.skipWhitepace(expressionStringBuilder);
                            OperatorExpressionPredicateCondition predicateCondition = new OperatorExpressionPredicateCondition(attribute, expressionPredicateOperator, jsonValue);
                            if(op != null) {
                                predicateCondition.setCombine(op);
                                op = null;
View Full Code Here

Examples of com.alibaba.druid.support.json.JSONParser

import com.alibaba.druid.support.json.JSONParser;

public class JSONParserTest extends TestCase {

    public void test_parse() throws Exception {
        JSONParser parser = new JSONParser("{ \"id\":33,\"name\":\"jobs\",\"values\":[1,2,3,4], \"f1\":true, \"f2\":false,\"f3\":-234,\"f4\":3.5}");
        Map<String, Object> map = (Map<String, Object>) parser.parse();
        Assert.assertEquals(33, map.get("id"));
        Assert.assertEquals("jobs", map.get("name"));
        Assert.assertEquals(4, ((List) map.get("values")).size());
        Assert.assertEquals(1, ((List) map.get("values")).get(0));
        Assert.assertEquals(2, ((List) map.get("values")).get(1));
View Full Code Here

Examples of com.almilli.htmlparser.JSONParser

                log.debug("Parsing data at: " + url);
            }
            GetMethod rolloverMethod = new GetMethod(url);
            httpClient.executeMethod(rolloverMethod);
            String response = rolloverMethod.getResponseBodyAsString();
            Map<String, Object> props = new JSONParser().parse(response);
           
            parser.setInputHTML((String)props.get("responseBody"));
           
            NodeCollector infoCollector = new NodeCollector(new NodeFilter[] {
                    new CssClassFilter("boxart"),
View Full Code Here

Examples of com.bleujin.dbfs.common.JSONParser

    "             param:{no1:10}," + // no2 not use param
    "             page:{listnum:10, pageno:1} }}";
   
    JSONObject jo = JSONObject.fromObject(form.getQuery());
   
    QueryObj query = new JSONParser(getDBController()).parseToQueryable(jo);
    JSONObject result = query.execute() ;
   
    request.setAttribute("result", result) ;
  }
View Full Code Here

Examples of com.codename1.io.JSONParser

  public void setLocation(LookupLocation location) {
    this.location = location;
  }

    protected void readResponse(InputStream input) throws IOException {
      JSONParser parser = new JSONParser();
      Hashtable h = parser.parse(new InputStreamReader(input));
      if (h.containsKey(RESPONSE_KEY_AD)) {
        fireResponseListener(new ActionEvent(h.get(RESPONSE_KEY_AD)));
      }
    }
View Full Code Here

Examples of com.codename1.io.JSONParser

          + ARG_IPADDRESS + '=' + ipAddress);
      setPost(false);
    }

    protected void readResponse(InputStream input) throws IOException {
      JSONParser parser = new JSONParser();
      Hashtable response = parser.parse(new InputStreamReader(input));
      LookupLocation loc = new LookupLocation();
      loc.setLookupStatus((String) response.get("statusCode"));
      if (loc.getStatus() == LocationManager.AVAILABLE) {
        loc.setLookupStatusMessage((String) response.get("statusMessage"));
      } else {
View Full Code Here

Examples of com.director.core.json.JsonParser

   @Override
   public DirectTransactionResult execute(DirectAction directAction, DirectMethod directMethod, DirectTransactionData data)
         throws DirectException {
      Object[] params = directMethod.parseParameters(data);
      Object result = invokeActionMethod(action, directAction, directMethod, params);
      JsonParser parser = DirectContext.get().getConfiguration().getParser();
      return parser.buildResult(directMethod, result);
   }
View Full Code Here

Examples of com.dubture.getcomposer.json.JsonParser

  }
 
  protected abstract void doParse(Object obj);

  private void parse(String json) throws ParseException {
    JsonParser parser = new JsonParser();
    doParse(parser.parse(json));
  }
View Full Code Here

Examples of com.facebook.presto.hive.shaded.org.codehaus.jackson.JsonParser

         * style to ensure we can handle all kinds of JSON constructs.
         */
        TokenBuffer merged = new TokenBuffer(jp.getCodec());
        merged.writeStartArray();
        merged.writeString(_typeIds[index]);
        JsonParser p2 = _tokens[index].asParser(jp);
        p2.nextToken();
        merged.copyCurrentStructure(p2);
        merged.writeEndArray();
        // needs to point to START_OBJECT (or whatever first token is)
        p2 = merged.asParser(jp);
        p2.nextToken();
        _properties[index].getProperty().deserializeAndSet(p2, ctxt, bean);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.