100+ results results for 'com.alibaba. fast json' (22 ms)
2 3import com.alibaba.fastjson.JSON; 4import com.google.common.collect.Lists; 6import com.google.common.collect.Sets; 7import com.tts.util.JsonUtil; 8import org.apache.commons.collections.CollectionUtils; 65 } else { 66 redisValue = JSON.toJSONString(value); 67 } 368 } else { 369 redisValue = JSON.toJSONString(value); 370 } 428 } else { 429 redisValue = JSON.toJSONString(value); 430 }TestMetricTrans.java https://gitlab.com/zhengdingke/gmonitor | Java | 508 lines
36 37import com.alibaba.fastjson.JSON; 38import com.googlecode.jmxtrans.JmxTransformer; 57 private int runPeriod; 58 private File jsonDirOrFile; 59 private boolean runEndlessly; 198 File dirToWatch = null; 199 System.out.println(getJsonDirOrFile().toString()); 200 if (getJsonDirOrFile().isFile()) { 268 private void processFilesIntoServers(List<File> jsonFiles) throws LifecycleException { 269 MetricJsonCreateUtil.getAllModuleJsonObj(getJsonDirOrFile().getPath().toString()).stream().forEach(m -> { 270 System.out.println(JSON.toJSONString(m, true)); 273 try { 274 process = mapper.readValue(JSON.toJSONString(m), JmxProcess.class); 275 } catch (Exception e) {MetricTrans.java https://gitlab.com/zhengdingke/gmonitor | Java | 535 lines
36 37import com.alibaba.fastjson.JSON; 38import com.googlecode.jmxtrans.JmxTransformer; 50import com.googlecode.jmxtrans.util.WatchedCallback; 51import com.zdingke.gmonitor.utils.MetricJsonCreateUtil; 52 57 private int runPeriod; 58 private File jsonDirOrFile; 59 private boolean runEndlessly; 298 private void processFilesIntoServers(List<File> jsonFiles) throws LifecycleException { 299 MetricJsonCreateUtil.getAllModuleJsonObj(getJsonDirOrFile().getPath().toString()).stream().forEach(m -> { 300 ObjectMapper mapper = new ObjectMapper(); 302 try { 303 process = mapper.readValue(JSON.toJSONString(m), JmxProcess.class); 304 } catch (Exception e) {TagUtil.java https://gitlab.com/spiderworts/ab_weixin_cms | Java | 521 lines
25 26import com.alibaba.fastjson.JSONObject; 27 151 if (jsonTemp.lastIndexOf(",") == jsonTemp.length()) { 152 jsonTemp = jsonTemp.deleteCharAt(jsonTemp.length()); 153 } 217 jsonTemp.append("]}"); 218 return JSONObject.toJSONString(jsonTemp).toString(); 219 } 367 ObjectMapper mapper = new ObjectMapper(); 368// JSONObject jsonObject = JSONObject.fromObject(map); 369 try { 406 response.setHeader("Cache-Control", "no-store"); 407 JSONObject object = TagUtil.getJson(dataTableReturn,field); 408 try {GenTableServiceImpl.java https://gitlab.com/mrsunchangemyselfsun/ruoyi-vue | Java | 521 lines
23import org.springframework.transaction.annotation.Transactional; 24import com.alibaba.fastjson.JSON; 25import com.alibaba.fastjson.JSONObject; 126 { 127 String options = JSON.toJSONString(genTable.getParams()); 128 genTable.setOptions(options); 402 { 403 String options = JSON.toJSONString(genTable.getParams()); 404 JSONObject paramsObj = JSONObject.parseObject(options);Utils.java https://gitlab.com/ShaneNilsson/JarToUnity | Java | 961 lines
32 33import com.alibaba.fastjson.JSONObject; 34import com.baseproject.utils.UIUtils; 57 // 字段内容true 代表vip .false代表不是。 58 org.json.JSONObject objContent = BaseHelper.string2JSON(Youku.COOKIE, ";"); 59 String yktk = objContent.getString("yktk");CaptureResultAcitvity.java https://gitlab.com/ShaneNilsson/JarToUnity | Java | 528 lines
19 20import com.alibaba.fastjson.JSON; 21import com.example.youkuloginsdk.R; 345 try { 346 saoJson = JSON.parseObject(str, Saosao.class); 347 // Logger.e("二维码", "请求成功 status:" + saoJson.status); 347 // Logger.e("二维码", "请求成功 status:" + saoJson.status); 348 if (null != saoJson && TextUtils.equals("success", saoJson.status)) { 349 // if (saoJson.result.paid == 1) { 353 title.setText(saoJson.result.title); 354 seeToo.setText("观看到:" + YoukuUtil.formatTime(saoJson.result.firsttime)); 355 if (saoJson.result.limit >= 4) { 494 Youku.iStaticsManager.getHashMapStyleValue("vid", saoJson.result.videoid), StaticsConfigFile.SCAN_AND_SCAN_VIDEO_PLAY_ENCODE_VALUE); 495 goPlayer(saoJson.result.videoid, saoJson.result.title, (int) saoJson.result.firsttime, saoJson.result.paid == SaosaoResult.PAY_YES); 496 }GangliaWriter.java https://gitlab.com/zhengdingke/htest | Java | 302 lines
15 16import com.alibaba.fastjson.JSON; 17import com.alibaba.fastjson.annotation.JSONCreator; 58 59 @JSONCreator 60 public GangliaWriter(String host, Integer port, String addressingMode, Integer ttl, Boolean v31, String units, String slope, Integer tmax, Integer dmax, 223 public String toString() { 224 return JSON.toJSONString(this, true); 225 }InboxService.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 236 lines
2 3import com.alibaba.fastjson.JSON; 4import com.linbox.im.message.UnreadMsg; 48 String redisKey = RedisKey.getInboxKey(id); 49 String json = JSON.toJSONString(msg); 50 76 if (newUnreadMsg == null) { 77 logger.error("The message is stale. Message in redis: {}. Message received: {}", JSON.toJSONString(oldUnreadMsg), JSON.toJSONString(msg)); 78 return; 80 81 jedis.hset(redisKey, field, JSON.toJSONString(newUnreadMsg)); 82 } 116 msg.count = msg.msgId - msgId; 117 jedis.hset(redisKey, field, JSON.toJSONString(msg)); 118 }JacksonObjectInput.java https://gitlab.com/sxyseo/dubbox | Java | 178 lines
15 */ 16package com.alibaba.dubbo.common.serialize.support.json; 17 17 18import com.alibaba.dubbo.common.json.Jackson; 19import com.alibaba.dubbo.common.serialize.ObjectInput; 19import com.alibaba.dubbo.common.serialize.ObjectInput; 20import com.alibaba.dubbo.common.utils.ReflectUtils; 21import com.fasterxml.jackson.databind.ObjectMapper; 134// if (json.startsWith("{")) { 135// return JSON.parse(json, Map.class); 136// } else { 136// } else { 137// json = "{\"value\":" + json + "}"; 138//RedisUtils.java https://gitlab.com/Xiaolei-Zhang/upload | Java | 389 lines
10 11import com.alibaba.fastjson.JSON; 12import com.alibaba.fastjson.JSONObject; 127 } else { 128 JSONObject jsonObject = JSONObject.parseObject(object.toString()); 129 return JSON.toJavaObject(jsonObject, clazz);PullOldMsgHandler.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 179 lines
3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.JSONObject; 5import com.linbox.im.exceptions.IMConsumerException; 52 logger.debug("start handling PullOldMsgRequest: {}", json); 53 MessageWrapper wrapper = JSON.parseObject(json, MessageWrapper.class); 54 54 55 PullOldMsgRequest request = JSON.parseObject(((JSONObject)wrapper.content).toJSONString(), PullOldMsgRequest.class); 56 wrapper.content = request; 69 if (StringUtils.isBlank(userId)) { 70 logger.error("Can not find avaiable user id for PullOldMsgRequest {}", json); 71 return; 88 if (StringUtils.isBlank(remoteId)) { 89 logger.error("Can not find corresponding remote id for PullOldMsgRequest: {}", json); 90ProducerImpl.java https://gitlab.com/tanxinzheng/activemq-api | Java | 125 lines
2 3import com.alibaba.fastjson.JSONObject; 4import com.udfex.ucs.amq.api.service.ProducerService; 58 try { 59 ConsumeResult consumeResult = JSONObject.parseObject(message, ConsumeResult.class); 60 if (ConsumeResult.CONSUME_SUCCESS_CODE == consumeResult.getResultCode()) {MetricTimerTask.java https://gitlab.com/zhengdingke/gmonitor | Java | 107 lines
9 10import com.alibaba.fastjson.JSON; 11import com.google.common.collect.Maps; 90 // 以json的形式输入flume 91 // log.info(JSON.toJSONString(info, true)); 92 client.sendDataToFlume(JSON.toJSONString(info));PushService.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 252 lines
2 3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.TypeReference; 4import com.alibaba.fastjson.TypeReference; 5import com.alibaba.fastjson.annotation.JSONField; 6import com.alibaba.fastjson.parser.Feature; 178 179 @JSONField( 180 serialize = false 194 public UserMessage<T> getMessage(String json) { 195 return (UserMessage) JSON.parseObject(json, new TypeReference() { 196 }, new Feature[0]); 222 public NSQMessageBase<T> getMessage(String json) { 223 return (NSQMessageBase)JSON.parseObject(json, new TypeReference() { 224 }, new Feature[0]);TemplateBase.java git://github.com/greenlaw110/Rythm.git | Java | 1597 lines
27 28import com.alibaba.fastjson.JSON; 29import com.alibaba.fastjson.JSONArray; 33import org.rythmengine.conf.RythmConfiguration; 34import org.rythmengine.exception.FastRuntimeException; 35import org.rythmengine.exception.RythmException;HttpRequest.java https://gitlab.com/GavinGJ/MATIRX | Java | 137 lines
11 12import com.alibaba.fastjson.JSONObject; 13S.java git://github.com/greenlaw110/Rythm.git | Java | 1906 lines
27 28import com.alibaba.fastjson.JSON; 29import org.apache.commons.lang3.StringEscapeUtils; 440 * <ul> 441 * <li>json: {@link #escapeJSON(Object)} </li> 442 * <li>xml: {@link #escapeXML(Object)} </li> 462 String se = escape.toString(); 463 if ("json".equalsIgnoreCase(se)) return escapeJson(o); 464 if ("xml".equalsIgnoreCase(se)) return escapeXml(o);FastjsonDataFormat.java https://gitlab.com/matticala/apache-camel | Java | 188 lines
23 24import com.alibaba.fastjson.JSON; 25import com.alibaba.fastjson.serializer.SerializerFeature; 25import com.alibaba.fastjson.serializer.SerializerFeature; 26import com.alibaba.fastjson.support.config.FastJsonConfig; 27import org.apache.camel.Exchange; 34 * A <a href="http://camel.apache.org/data-format.html">data format</a> ({@link DataFormat}) 35 * using <a href="https://github.com/alibaba/fastjson">Fastjson</a> to marshal to and from JSON. 36 */ 54 55 public FastjsonDataFormat(FastJsonConfig config, Class<?> unmarshalType) { 56 this.config = config; 63 64 public FastjsonDataFormat(FastJsonConfig config, Type unmarshalGenericType) { 65 this.config = config;proguard-rules.pro https://gitlab.com/achmadalam.xirpl6/RamalanCuacaBukaan | Prolog | 125 lines
91#FASTJSON 92-dontwarn com.alibaba.fastjson.** 93-keep class com.alibaba.fastjson.** { *; }JsonUserType.java https://gitlab.com/0072016/es | Java | 144 lines
7 8import com.alibaba.fastjson.JSONObject; 9import com.alibaba.fastjson.serializer.SerializerFeature; 26 */ 27public class JsonUserType implements UserType, Serializable { 28 75 76 return JSONObject.parse(valueStr); 77 } 88 } else { 89 valueStr = JSONObject.toJSONString(value, SerializerFeature.WriteClassName); 90 } 112 if (o == null) return null; 113 String jsonStr = JSONObject.toJSONString(o, SerializerFeature.WriteClassName); 114 return JSONObject.parse(jsonStr);FastJsonSerializationTest.java https://gitlab.com/sxyseo/dubbox | Java | 266 lines
48 49 @Ignore("FastJson bug: com.alibaba.fastjson.JSONException: create asm serilizer error, class char") 50 @Test 52 53 @Ignore("FastJson bug: com.alibaba.fastjson.JSONException: create asm serilizer error, class char") 54 @Test 96 97 @Ignore("com.alibaba.fastjson.JSONException: create asm deserializer error, java.sql.Time") 98 @Test 150 151 @Ignore("FastJson bug: com.alibaba.fastjson.JSONException: illegal identifier : 1") 152 @Test 249 250 @Ignore("FastJson bug: com.alibaba.fastjson.JSONException: illegal identifier : 1") 251 @TestSendMsgHandler.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 207 lines
3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.JSONObject; 5import com.linbox.im.exceptions.IMConsumerException; 102 103 logger.debug("Save SessionMessageDao into DB. Message: {}. Dao: {}", JSON.toJSONString(body), JSON.toJSONString(dao)); 104 107 } else { 108 logger.debug("Find existing SessionMessageDao for message: {}. Dao: {}", JSON.toJSONString(body), JSON.toJSONString(dao)); 109 } 135 136 logger.debug("Save GroupMessageDao into DB. Message: {}. Dao: {}", JSON.toJSONString(groupMsgBody), JSON.toJSONString(groupMsgDao)); 137 140 } else { 141 logger.debug("Find existing GroupMessageDao for message: {}. Dao: {}", JSON.toJSONString(groupMsgBody), JSON.toJSONString(groupMsgDao)); 142 }MetricsJson.java https://gitlab.com/zhengdingke/gmonitor | Java | 162 lines
11 12import com.alibaba.fastjson.JSON; 13import com.alibaba.fastjson.JSONArray; 13import com.alibaba.fastjson.JSONArray; 14import com.alibaba.fastjson.JSONObject; 15import com.google.common.collect.Lists; 118 119 JSONArray servers = new JSONArray(); 120 servers.add(server); 134 cinfo.getModule().stream().forEach(m -> { 135 JSONObject moduleObj = createJsonObject(cinfo.getGmondConn(), serviceType, m); 136 String jsonFileName = m.getName() + ".json"; 136 String jsonFileName = m.getName() + ".json"; 137 boolean over = StringFileTransUtil.string2File(JSON.toJSONString(moduleObj, true), new File(dir + "/test/" + jsonFileName)); 138 LOG.info("createFile:" + dir + ":" + jsonFileName + ":" + (over ? "success" : "false"));VelocityUtils.java https://gitlab.com/mrsunchangemyselfsun/ruoyi-vue | Java | 401 lines
7import org.apache.velocity.VelocityContext; 8import com.alibaba.fastjson.JSONObject; 9import com.ruoyi.common.constant.GenConstants; 77 String options = genTable.getOptions(); 78 JSONObject paramsObj = JSONObject.parseObject(options); 79 String parentMenuId = getParentMenuId(paramsObj); 85 String options = genTable.getOptions(); 86 JSONObject paramsObj = JSONObject.parseObject(options); 87 String treeCode = getTreecode(paramsObj); 253 importList.add("java.util.Date"); 254 importList.add("com.fasterxml.jackson.annotation.JsonFormat"); 255 } 383 String options = genTable.getOptions(); 384 JSONObject paramsObj = JSONObject.parseObject(options); 385 String treeName = paramsObj.getString(GenConstants.TREE_NAME);IMMessageDecoder.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 123 lines
2 3import com.alibaba.fastjson.JSON; 4import com.linbox.im.message.MessageWrapper; 88 89 String json = aes.decrypt(buf); 90 90 91 Object message = JSON.parseObject(json, requestResponseType.getClazz()); 92 93 if (message == null) { 94 logger.error("Can not parse message content from json string. Message Type: {}. Message Content Size: {}. Message Content: {}.", requestResponseType.getName()); 95 } else {DispatchToSingleHandler.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 161 lines
2 3import com.alibaba.fastjson.JSON; 4import com.linbox.im.exceptions.IMConsumerException; 38 public void handle(ConsumerRecord<String, String> record) { 39 String json = record.value(); 40 41 try { 42 SendDispatchMessage dispatchMsg = JSON.parseObject(json, SendDispatchMessage.class); 43 if (dispatchMsg == null) { 43 if (dispatchMsg == null) { 44 throw new IMException("DispatchMessage could not be parsed correctly. Message: " + json); 45 } 59 } catch (Exception e) { 60 throw new IMConsumerException(e, json); 61 }Parsers.java https://gitlab.com/achmadalam.xirpl6/RamalanCuacaBukaan | Java | 129 lines
6 7import com.alibaba.fastjson.JSON; 8 99 //DESERIALISASI JSON DATA RAMALAN CUACA PER HARI 100 public CuacaPerHari parseJSONCuacaHarian(String stringJson) { 101 104 try { 105 cuacaPerHari = JSON.parseObject(stringJson, CuacaPerHari.class); 106 } catch (Exception e) { 114 //DESERIALISASI JSON DATA RAMALAN CUACA PER JAM 115 public CuacaPerJams parseJSONCuacaPerJAM(String stringJSON) { 116 119 try { 120 cuacaPerJams = JSON.parseObject(stringJSON, CuacaPerJams.class); 121 } catch (Exception e) {JsonHttpMessageConverter.java https://gitlab.com/Fish-Potato/TTStreet-core | Java | 83 lines
2 3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.serializer.SerializerFeature; 4import com.alibaba.fastjson.serializer.SerializerFeature; 5import com.tts.util.JsonUtil; 6import org.springframework.http.HttpInputMessage; 24@Service 25public class JsonHttpMessageConverter extends AbstractHttpMessageConverter<Object> { 26 public static final Charset UTF8 = Charset.forName("UTF-8"); 30 public JsonHttpMessageConverter() { 31 super(new MediaType[]{new MediaType("application", "json", UTF8), new MediaType("application", "*+json", UTF8)}); 32 this.charset = UTF8; 77 78 String text = JSON.toJSONString(obj, this.features); 79 byte[] bytes = text.getBytes(this.charset);TestModelClass.java https://gitlab.com/zhengdingke/gmonitor | Java | 61 lines
8 9import com.alibaba.fastjson.JSON; 10import com.zdingke.gmonitor.common.StringFileTransUtil; 19 @Test 20 public void generateComponentJsonFile() { 21 MetricInfo minfo = new MetricInfo("memory", Arrays.asList(new String[]{"memory1","memory2"}),"memory"); 23 ComponentInfo cinfo = new ComponentInfo("storm", Arrays.asList(moinfo), "1.1.1.1:1111"); 24 StringFileTransUtil.string2File(JSON.toJSONString(cinfo, true), new File(TestModelClass.class.getResource("/").getFile().toString() + "storm.json")); 25 } 32 jinfo.setMetrics(Arrays.asList(minfo)); 33 StringFileTransUtil.string2File(JSON.toJSONString(jinfo, true), new File(TestModelClass.class.getResource("/").getFile().toString() + "jvm.json")); 34 } 37 public void combineJvm() { 38 String jvm = StringFileTransUtil.file2String(new File(TestModelClass.class.getResource("/").getFile().toString() + "jvm.json"), "GBK"); 39 JVMInfo jinfo = JSON.parseObject(jvm, JVMInfo.class);ByteCreator.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 35 lines
2 3import com.alibaba.fastjson.JSON; 4import com.linbox.im.exceptions.IMException; 32 public String toWrapperJson() { 33 return JSON.toJSONString(toWrapper()); 34 }Message.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 75 lines
2 3import com.alibaba.fastjson.annotation.JSONField; 4import com.linbox.im.server.storage.entity.GroupMessageEntity; 12 // 消息发送时的 rId 13 @JSONField(name = "r_id") 14 public long rId; 16 // 发送方 id 17 @JSONField(name = "from_user_id") 18 public String fromUserId; 20 // 目的方 id 21 @JSONField(name = "to_user_id") 22 public String toUserId; 24 // 群组 id 25 @JSONField(name = "group_id") 26 public String groupId;DispatchToGroupHandler.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 67 lines
2 3import com.alibaba.fastjson.JSON; 4import com.linbox.im.exceptions.IMConsumerException; 37 public void handle(ConsumerRecord<String, String> record) { 38 String json = record.value(); 39 40 try { 41 final Message groupMessage = JSON.parseObject(json, Message.class); 42 43 if (groupMessage == null) { 44 throw new IMException("Message could not be parsed correctly. Message: " + json); 45 } 63 } catch (Exception e) { 64 throw new IMConsumerException(e, json); 65 }HashMapToStringUserType.java https://gitlab.com/0072016/es | Java | 187 lines
7 8import com.alibaba.fastjson.JSONObject; 9import com.alibaba.fastjson.serializer.SerializerFeature; 99 100 Map map = JSONObject.parseObject(valueStr); 101 Map result = newMap(); 123 } else { 124 valueStr = JSONObject.toJSONString(value, SerializerFeature.WriteClassName); 125 }User.java https://bitbucket.org/leafiwan/collegemailsystem.git | Java | 338 lines
11 12import org.apache.struts2.json.annotations.JSON; 13 13 14import com.alibaba.fastjson.annotation.JSONField; 15import com.jieshuhuiyou.Config; 127 @JSONField(serialize = false) 128 @JSON(serialize = false) 129 public String getDescription() { 155 @JSONField(serialize = false) 156 @JSON(serialize = false) 157 public String getPassword() { 174 175 @JSONField(serialize = false) 176 public int getSharingCount() {SyncSystemUnreadHandler.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 110 lines
2 3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.JSONObject; 44 45 MessageWrapper wrapper = JSON.parseObject(json, MessageWrapper.class); 46 46 47 SyncSystemUnreadRequest request = JSON.parseObject(((JSONObject)wrapper.content).toJSONString(), SyncSystemUnreadRequest.class); 48 wrapper.content = request; 50 if (request == null) { 51 logger.error("SyncSystemUnreadCallback format is not correct. Json string: {}", json); 52 return; 66 newFriends.systemType = SystemMessageTypes.NewFriend.getValue(); 67 newFriends.content = JSON.toJSONString(newFriendsContent); 68 messages.add(newFriends);PingHandler.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 59 lines
2 3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.JSONObject; 31 public void handle(ConsumerRecord<String, String> record) { 32 String json = record.value(); 33 34 try { 35 logger.debug("Start handling Ping: {}", json); 36 36 37 MessageWrapper wrapper = JSON.parseObject(json, MessageWrapper.class); 38 38 39 Ping ping = JSON.parseObject(((JSONObject)wrapper.content).toJSONString(), Ping.class); 40 wrapper.content = ping;TTSRedisTemplate.java https://gitlab.com/Fish-Potato/TTStreet-core | Java | 113 lines
2 3import com.alibaba.fastjson.JSON; 4import org.apache.commons.collections.MapUtils; 57 } else { 58 cacheMap.put(key, JSON.toJSONString(value)); 59 }CompatibleFilter.java https://gitlab.com/zouxc/dubbo | Java | 75 lines
15 */ 16package com.alibaba.dubbo.rpc.filter; 17 21import com.alibaba.dubbo.common.Constants; 22import com.alibaba.dubbo.common.logger.Logger; 23import com.alibaba.dubbo.common.logger.LoggerFactory; 23import com.alibaba.dubbo.common.logger.LoggerFactory; 24import com.alibaba.dubbo.common.utils.CompatibleTypeUtils; 25import com.alibaba.dubbo.common.utils.PojoUtils; 25import com.alibaba.dubbo.common.utils.PojoUtils; 26import com.alibaba.dubbo.rpc.Filter; 27import com.alibaba.dubbo.rpc.Invocation; 52 if ("json".equals(serialization) 53 || "fastjson".equals(serialization)){ 54 Type gtype = method.getGenericReturnType();FastJsonObjectInput.java https://gitlab.com/zouxc/dubbo | Java | 138 lines
15 */ 16package com.alibaba.dubbo.common.serialize.support.json; 17 27import com.alibaba.dubbo.common.utils.PojoUtils; 28import com.alibaba.fastjson.JSON; 29 34 */ 35public class FastJsonObjectInput implements ObjectInput { 36 38 39 public FastJsonObjectInput(InputStream in){ 40 this(new InputStreamReader(in)); 42 43 public FastJsonObjectInput(Reader reader){ 44 this.reader = new BufferedReader(reader);JacksonTest.java https://gitlab.com/sxyseo/dubbox | Java | 177 lines
1package com.alibaba.dubbo.common.json; 2 2 3import com.alibaba.dubbo.common.serialize.support.json.FastJsonObjectOutput; 4import com.alibaba.dubbo.common.serialize.support.json.JacksonObjectInput; 4import com.alibaba.dubbo.common.serialize.support.json.JacksonObjectInput; 5import com.alibaba.dubbo.common.serialize.support.json.JacksonObjectOutput; 6import com.alibaba.dubbo.common.utils.CollectionUtils; 6import com.alibaba.dubbo.common.utils.CollectionUtils; 7import com.fasterxml.jackson.databind.ObjectMapper; 8import org.junit.Test;IMMessageEncoder.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 45 lines
2 3import com.alibaba.fastjson.JSON; 4import com.linbox.im.message.MessageWrapper; 32 33 byte[] content = aes.encrypt(JSON.toJSONString(messageWrapper.content)); 34SyncUnreadHandler.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 177 lines
3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.JSONObject; 5import com.linbox.im.exceptions.IMConsumerException; 45 46 MessageWrapper wrapper = JSON.parseObject(json, MessageWrapper.class); 47 47 48 SyncUnreadRequest request = JSON.parseObject(((JSONObject)wrapper.content).toJSONString(), SyncUnreadRequest.class); 49 wrapper.content = request; 51 if(request == null) { 52 logger.error("SyncUnreadRequest format is not correct. Json string: {}", json); 53 return; 90 if (StringUtils.isBlank(remoteId)) { 91 logger.error("Can not find remote id for SyncUnreadRequest {}", json); 92 throw new IMException("Non existing SyncUnreadRequest " + json);LogUtils.java https://gitlab.com/0072016/es | Java | 150 lines
2 3import com.alibaba.fastjson.JSON; 4import com.google.common.collect.Lists; 117 Map<String, String[]> params = request.getParameterMap(); 118 return JSON.toJSONString(params); 119 } 133 } 134 return JSON.toJSONString(headers); 135 }AuthenticationEntryPointImpl.java https://gitlab.com/mrsunchangemyselfsun/ruoyi-vue | Java | 34 lines
9import org.springframework.stereotype.Component; 10import com.alibaba.fastjson.JSON; 11import com.ruoyi.common.constant.HttpStatus; 31 String msg = StringUtils.format("请求访问:{},认证失败,无法访问系统资源", request.getRequestURI()); 32 ServletUtils.renderString(response, JSON.toJSONString(AjaxResult.error(code, msg))); 33 }SameUrlDataInterceptor.java https://gitlab.com/mrsunchangemyselfsun/ruoyi-vue | Java | 110 lines
9import org.springframework.stereotype.Component; 10import com.alibaba.fastjson.JSONObject; 11import com.ruoyi.common.annotation.RepeatSubmit; 52 { 53 nowParams = JSONObject.toJSONString(request.getParameterMap()); 54 }IMService.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 137 lines
2 3import com.alibaba.fastjson.JSON; 4import com.google.common.base.Strings; 113 114 String json = JSON.toJSONString(wrapper); 115 115 116 kafkaProducer.send(new ProducerRecord(MessageTopic.TOPIC_SEND_MSG, json)); 117 } 134 135 outboxService.put(targetUserId, systemMessage.toWrapperJson()); 136 }ConsumerImpl.java https://gitlab.com/tanxinzheng/activemq-api | Java | 77 lines
2 3import com.alibaba.fastjson.JSONObject; 4import org.apache.activemq.command.ActiveMQQueue; 56 consumeResult.setRequestId(requestId); 57 TextMessage responseMessage = session.createTextMessage(JSONObject.toJSONString(consumeResult)); 58 responseMessage.setStringProperty(BaseMessage.MESSAGE_ID, messageId);SyncUnreadRequest.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 39 lines
2 3import com.alibaba.fastjson.annotation.JSONField; 4 9 // request id 10 @JSONField(name="r_id") 11 public long rId; 13 // user chat id 14 @JSONField(name="user_id") 15 public String userId; 18 // 非必填项,填写则指定拉取一组对话的未读数信息。不填则拉取所有未读数信息 19 @JSONField(name = "remote_id") 20 public String remoteId; 21 22 @JSONField(name = "group_id") 23 public String groupId;IMMessageHandler.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 138 lines
2 3import com.alibaba.fastjson.JSON; 4import com.linbox.im.message.*; 60 61 String json = JSON.toJSONString(wrapper); 62 71 72 kafkaProducer.send(new ProducerRecord<String, String>(MessageTopic.TOPIC_SYNC_UNREAD, json)); 73 break; 91 92 kafkaProducer.send(new ProducerRecord<String, String>(MessageTopic.TOPIC_PULL_OLD_MEG, json)); 93 break; 125 default: 126 logger.error("{} is not handled right now. Message content: {}", type.getName(), JSON.toJSONString(msg)); 127 }TestAOP.java https://gitlab.com/GavinGJ/MATIRX | Java | 205 lines
22 23import com.alibaba.fastjson.JSON; 24import com.alibaba.fastjson.JSONObject; 72 73 String json = JSONObject.toJSONString(params); 74 String version = null; 84 85 List<ParamModel> jsons = JSON.parseArray(json, ParamModel.class); 86 if (jsons.get(0).getUserId() != null) { 175 public void send2Redmine(String desc) throws ClientProtocolException, IOException { 176 JSONObject jo = new JSONObject(); 177 issue issue = new issue(); 196 public void getMapByJson(String json) { 197 Map mapTypes = JSON.parseObject(json); 198 // 最外层解析JsonUtil.java https://gitlab.com/Fish-Potato/TTStreet-core | Java | 80 lines
2 3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.JSONObject; 4import com.alibaba.fastjson.JSONObject; 5import com.alibaba.fastjson.parser.Feature; 6import com.alibaba.fastjson.parser.ParserConfig; 6import com.alibaba.fastjson.parser.ParserConfig; 7import com.alibaba.fastjson.parser.deserializer.ParseProcess; 8 23 } 24 return JSON.toJSONString(o); 25 } 72 T t = null; 73 JSONObject jsonObject =(JSONObject) JSON.parse(param); 74 return (T)jsonObject.get(jsonObject.keySet().iterator().next());JsonFilePipeline.java https://gitlab.com/taichu/webmagic | Java | 47 lines
2 3import com.alibaba.fastjson.JSON; 4import org.apache.commons.codec.digest.DigestUtils; 15/** 16 * Store results to files in JSON format.<br> 17 * 20 */ 21public class JsonFilePipeline extends FilePersistentBase implements Pipeline { 22 25 /** 26 * new JsonFilePageModelPipeline with default path "/data/webmagic/" 27 */ 40 PrintWriter printWriter = new PrintWriter(new FileWriter(getFile(path + DigestUtils.md5Hex(resultItems.getRequest().getUrl()) + ".json"))); 41 printWriter.write(JSON.toJSONString(resultItems.getAll())); 42 printWriter.close();LoopQuery.scala https://gitlab.com/coinmachine/ares | Scala | 198 lines
2 3import com.alibaba.fastjson.{JSON, JSONObject} 4import com.coinmachine.ares.Logging 15 try { 16 val pos = JSON.parse(user.futurePostV1.future_position(symbol, contractType)).asInstanceOf[JSONObject] 17 if (Option(pos).nonEmpty) { 57 try { 58 val orders = JSON.parse(user.stockPostV1.order_info(symbol, orderId)).asInstanceOf[JSONObject].getJSONArray("orders") 59 Option(orders) match { 81 try { 82 val orders = JSON.parse(user.futurePostV1.future_orders_info(symbol, contractType, orderId)).asInstanceOf[JSONObject].getJSONArray("orders") 83 Option(orders) match { 159 try { 160 val ticker = JSON.parse(user.futureGetV1.future_ticker(symbol, contractType)).asInstanceOf[JSONObject] 161 if (ticker.containsKey("ticker")) {JobProcessLog.java https://gitlab.com/zhengdingke/htest | Java | 59 lines
4 5import com.alibaba.fastjson.JSON; 6 45 public String toString() { 46 return JSON.toJSONString(this); 47 }LogAspect.java https://gitlab.com/mrsunchangemyselfsun/ruoyi-vue | Java | 218 lines
16import org.springframework.web.servlet.HandlerMapping; 17import com.alibaba.fastjson.JSON; 18import com.ruoyi.common.annotation.Log; 45 */ 46 @AfterReturning(pointcut = "@annotation(controllerLog)", returning = "jsonResult") 47 public void doAfterReturning(JoinPoint joinPoint, Log controllerLog, Object jsonResult) 48 { 49 handleLog(joinPoint, controllerLog, null, jsonResult); 50 } 132 { 133 operLog.setJsonResult(StringUtils.substring(JSON.toJSONString(jsonResult), 0, 2000)); 134 } 171 { 172 Object jsonObj = JSON.toJSON(o); 173 params += jsonObj.toString() + " ";ReadAckHandler.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 133 lines
3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.JSONObject; 5import com.linbox.im.exceptions.IMConsumerException; 40 try { 41 logger.debug("Start handling ReadAckRequest: {}", json); 42 42 43 MessageWrapper wrapper = JSON.parseObject(json, MessageWrapper.class); 44 44 45 ReadAckRequest request = JSON.parseObject(((JSONObject)wrapper.content).toJSONString(), ReadAckRequest.class); 46 wrapper.content = request; 66 if (StringUtils.isBlank(remoteId)) { 67 logger.error("Can not find remote id for ReadAckRequest {}", json); 68StrategyUtil.scala https://gitlab.com/coinmachine/ares | Scala | 88 lines
2 3import com.alibaba.fastjson.{JSON, JSONObject} 4import com.coinmachine.ares.Logging 12 def config(): (UserInfo, String, Float, Float, Float) = { 13 val conf = new JSONObject() 14 34 35 val userInfoData = JSON.parse(userInfo.futurePostV1.future_userinfo()).asInstanceOf[JSONObject] 36 Option(userInfoData) match {JsonFilePageModelPipeline.java https://gitlab.com/taichu/webmagic | Java | 56 lines
2 3import com.alibaba.fastjson.JSON; 4import org.apache.commons.codec.digest.DigestUtils; 16/** 17 * Store results objects (page models) to files in JSON format.<br> 18 * Use model.getKey() as file name if the model implements HasKey.<br> 23 */ 24public class JsonFilePageModelPipeline extends FilePersistentBase implements PageModelPipeline { 25 28 /** 29 * new JsonFilePageModelPipeline with default path "/data/webmagic/" 30 */ 49 PrintWriter printWriter = new PrintWriter(new FileWriter(getFile(filename))); 50 printWriter.write(JSON.toJSONString(o)); 51 printWriter.close();SplashPresenter.java https://gitlab.com/gzsll/TLint | Java | 89 lines
4import android.support.annotation.NonNull; 5import com.alibaba.fastjson.JSON; 6import com.gzsll.hupu.Constants; 52 String result = mOkHttpHelper.getStringFromServer(Constants.UPDATE_URL); 53 return JSON.parseObject(result, UpdateInfo.class); 54 } catch (Exception e) {FastJson2JsonRedisSerializer.java https://gitlab.com/mrsunchangemyselfsun/ruoyi-vue | Java | 71 lines
2 3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.serializer.SerializerFeature; 9import org.springframework.data.redis.serializer.SerializationException; 10import com.alibaba.fastjson.parser.ParserConfig; 11import org.springframework.util.Assert; 18 */ 19public class FastJson2JsonRedisSerializer<T> implements RedisSerializer<T> 20{ 32 33 public FastJson2JsonRedisSerializer(Class<T> clazz) 34 { 45 } 46 return JSON.toJSONString(t, SerializerFeature.WriteClassName).getBytes(DEFAULT_CHARSET); 47 }ConsumerClient.java https://gitlab.com/tanxinzheng/activemq-api | Java | 54 lines
2 3import com.alibaba.fastjson.JSONObject; 4import com.udfex.ucs.amq.api.*; 25 public MockData fromMessage(DataMessage dataMessage) { 26 return JSONObject.parseObject(dataMessage.getMessageBody(), MockData.class); 27 } 30 public void handler(MockData message) { 31 System.out.println("消费,GUEST.PID_UDFEX_PRODUCER_TEST_00001:" + JSONObject.toJSONString(message)); 32 if(message.getAge() %2 ==0){ 43 public MockData2 fromMessage(DataMessage dataMessage) { 44 return JSONObject.parseObject(dataMessage.getMessageBody(), MockData2.class); 45 }FutureWaveCutter.scala https://gitlab.com/coinmachine/ares | Scala | 199 lines
2 3import com.alibaba.fastjson.{JSONObject, JSON} 4import com.coinmachine.ares.Logging 29 val userInfo = LoopQuery.futureUserInfo(user); 30 val marketUserInfo = userInfo.getJSONObject(coinType) 31 val accountRights = marketUserInfo.getFloat("account_rights")MetricJsonCreateUtil.java https://gitlab.com/zhengdingke/gmonitor | Java | 116 lines
14import com.alibaba.fastjson.JSON; 15import com.alibaba.fastjson.JSONObject; 16import com.google.common.collect.Lists; 72 String serviceType = info.getName().replace("-info.json", ""); 73 MetricsJson metricJson = getMetricsJsonByServiceType(serviceType, dirpath); 74 ComponentInfo cinfo = null; 78 cinfo.getModule().stream().forEach(m -> { 79 jsonObj.add(metricJson.createJsonObject(gmondConn, serviceType, m)); 80 }); 90 List<JSONObject> jsonObj = Lists.newArrayList(); 91 MetricsJson metricJson = getMetricsJsonByServiceType(serviceType, dirpath); 92 ComponentInfo cinfo = null; 96 cinfo.getModule().stream().forEach(m -> { 97 jsonObj.add(metricJson.createJsonObject(gmondConn, serviceType, m)); 98 });GangliaSink.java https://gitlab.com/zhengdingke/htest | Java | 58 lines
12 13import com.alibaba.fastjson.JSON; 14import com.zdingke.flume.ganglia.metric.GangliaWriter; 45 private void sendDataToGanglia(String data) { 46 MetricInfo info = JSON.parseObject(data,MetricInfo.class); 47 String []strs= info.getGmetadInfo().split(":");ServerConfig.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 300 lines
2 3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.JSONArray; 4import com.alibaba.fastjson.JSONArray; 5import com.alibaba.fastjson.JSONObject; 6import java.io.InputStream; 137 { 138 paramString = (JSONObject)JSON.parse(paramString); 139 Object localObject1 = paramString.getJSONArray("defaultroots"); 152 } 153 ((List)localObject2).add(((JSONArray)localObject1).getJSONObject(i).getString("root").trim()); 154 i += 1; 155 } 156 Object localObject3 = ((JSONArray)localObject2).getJSONObject(i); 157 String str1 = ((JSONObject)localObject3).getString("type");Restful.java https://gitlab.com/zouxc/dubbo | Java | 92 lines
7 */ 8package com.alibaba.dubbo.governance.web.home.module.screen; 9 17 18import com.alibaba.dubbo.common.URL; 19import com.alibaba.dubbo.governance.web.util.WebConstants; 20import com.alibaba.dubbo.registry.common.domain.User; 21import com.alibaba.fastjson.JSON; 22 57 context.put("operatorAddress", operatorAddress); 58 String jsonResult = null; 59 try { 79 try { 80 jsonResult = JSON.toJSONString(result); 81 os.print(jsonResult);SendMsgResponse.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 39 lines
2 3import com.alibaba.fastjson.annotation.JSONField; 4 8public class SendMsgResponse extends ByteCreator { 9 @JSONField(name = "r_id") 10 public long rId; 11 12 @JSONField(name = "msg_r_id") 13 public long msgRId; 14 15 @JSONField(name = "user_id") 16 public String userId; 17 18 @JSONField(name = "remote_id") 19 public String remoteId;DynamicSubject.java https://gitlab.com/JasonZheng150214/Jasyl | Java | 45 lines
2 3import com.alibaba.fastjson.JSON; 4 26 Object result = method.invoke(object, args); 27 System.out.println(JSON.toJSON(result)); 28ProducerClient.java https://gitlab.com/tanxinzheng/activemq-api | Java | 48 lines
2 3import com.alibaba.fastjson.JSONObject; 4import com.udfex.ucs.amq.api.*; 30 dataMessage.setTopic("GUEST.PID_UDFEX_PRODUCER_TEST_00002"); 31 dataMessage.setMessageBody(JSONObject.toJSONString(data)); 32 producer.send(dataMessage); 45 data2.setName("测试队列2"); 46 //producer2.send(JSONObject.toJSONString(data2)); 47 }CfgValueViewer2.java https://gitlab.com/BGCX261/zk-full-demo-git.git | Java | 521 lines
20 21import com.alibaba.fastjson.JSON; 22 370 Object json = CfgParser.toJson(cfgValue, true); 371 String jsonStr = json == null ? "" : JSON.toJSONString(json, true); 372 Textbox v = new Textbox(); 376 v.setHeight("100%"); 377 v.setValue(jsonStr); 378 createDialog(v, "查看数据");UpdateAgent.java https://gitlab.com/gzsll/TLint | Java | 175 lines
13import com.afollestad.materialdialogs.MaterialDialog; 14import com.alibaba.fastjson.JSON; 15import com.gzsll.hupu.BuildConfig; 68 String result = mOkHttpHelper.getStringFromServer(Constants.UPDATE_URL); 69 return JSON.parseObject(result, UpdateInfo.class); 70 } catch (Exception e) {RedisScheduler.java https://gitlab.com/taichu/webmagic | Java | 128 lines
2 3import com.alibaba.fastjson.JSON; 4import org.apache.commons.codec.digest.DigestUtils; 68 String field = DigestUtils.shaHex(request.getUrl()); 69 String value = JSON.toJSONString(request); 70 jedis.hset((ITEM_PREFIX + task.getUUID()), field, value); 88 if (bytes != null) { 89 Request o = JSON.parseObject(new String(bytes), Request.class); 90 return o;UserHelper.java https://github.com/dawnsait/holywar.git | Java | 44 lines
2 3import com.alibaba.fastjson.JSON; 4import com.fasheng.service.dto.PartnerUserDTO; 11 public static PartnerUserLoginRequest getPartnerUserLoginRequest(String requestInfo) { 12 return JSON.parseObject(requestInfo, PartnerUserLoginRequest.class); 13 }FastJsonSerialization.java https://gitlab.com/zouxc/dubbo | Java | 50 lines
15 */ 16package com.alibaba.dubbo.common.serialize.support.json; 17 27/** 28 * FastJsonSerialization 29 * 31 */ 32public class FastJsonSerialization implements Serialization { 33 42 public ObjectOutput serialize(URL url, OutputStream output) throws IOException { 43 return new FastJsonObjectOutput(output); 44 } 46 public ObjectInput deserialize(URL url, InputStream input) throws IOException { 47 return new FastJsonObjectInput(input); 48 }SendDispatcher.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 60 lines
2 3import com.alibaba.fastjson.JSON; 4import com.linbox.im.exceptions.IMException; 34 35 String json = JSON.toJSONString(message); 36 if (json == null) { 36 if (json == null) { 37 throw new IMException("Message to user " + userId + "can not be parsed to json correctly."); 38 } 39 40 kafkaProducer.send(new ProducerRecord<String, String>(MessageTopic.TOPIC_DISPATCH_SEND_SINGLE, json)); 41 } catch (Exception e) { 48 try { 49 String json = JSON.toJSONString(message); 50 if (json == null) {AuthHandler.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 264 lines
2 3import com.alibaba.fastjson.JSON; 4import com.linbox.im.message.*; 69 public void channelRead(final ChannelHandlerContext ctx, Object msg) throws Exception { 70 logger.debug("Received AuthRequest. Message: {}", JSON.toJSONString(msg)); 71 167 168 final MessageWrapper wrapper = JSON.parseObject(msg, MessageWrapper.class); 169FastJsonObjectOutput.java https://gitlab.com/zouxc/dubbo | Java | 100 lines
15 */ 16package com.alibaba.dubbo.common.serialize.support.json; 17 24import com.alibaba.dubbo.common.serialize.ObjectOutput; 25import com.alibaba.fastjson.serializer.JSONSerializer; 26import com.alibaba.fastjson.serializer.SerializeWriter; 26import com.alibaba.fastjson.serializer.SerializeWriter; 27import com.alibaba.fastjson.serializer.SerializerFeature; 28 33 */ 34public class FastJsonObjectOutput implements ObjectOutput { 35 37 38 public FastJsonObjectOutput(OutputStream out) { 39 this(new OutputStreamWriter(out));LoginUser.java https://gitlab.com/mrsunchangemyselfsun/ruoyi-vue | Java | 266 lines
6import org.springframework.security.core.userdetails.UserDetails; 7import com.alibaba.fastjson.annotation.JSONField; 8import com.ruoyi.common.core.domain.entity.SysUser; 121 122 @JSONField(serialize = false) 123 @Override 137 */ 138 @JSONField(serialize = false) 139 @Override 149 */ 150 @JSONField(serialize = false) 151 @Override 161 */ 162 @JSONField(serialize = false) 163 @OverrideTestMetricsCreate.java https://gitlab.com/zhengdingke/gmonitor | Java | 88 lines
6 7import com.alibaba.fastjson.JSON; 8import com.alibaba.fastjson.JSONArray; 8import com.alibaba.fastjson.JSONArray; 9import com.alibaba.fastjson.JSONObject; 10import com.zdingke.gmonitor.FlumeMetricsJson; 50 51 JSONArray servers = new JSONArray(); 52 servers.add(server); 60 public void testStormJson() throws IOException { 61 MetricsJson create = new StormMetricsJson(""); 62 create.createJsonFile(); 66 public void testKafkaJson() throws IOException { 67 MetricsJson create = new KafkaMetricsJson("E:/eclipse/eclipse_pro/kingee_pro/bigdata/ganglia-metric/target/test-classes/unittest"); 68 create.createJsonFile();JsonMapUserType.java https://gitlab.com/0072016/es | Java | 152 lines
2 3import com.alibaba.fastjson.JSON; 4import org.hibernate.HibernateException; 74// try { 75// Map<Object, Object> map = objectMapper.readValue(json, HashMap.class); 76// return new JsonMap(map); 79// } 80 Map<Object, Object> map = JSON.parseObject(json, HashMap.class); 81 return new JsonMap(map); 97// } 98 st.setString(index, JSON.toJSONString((((JsonMap) value).getMap()))); 99 } 119 if (o == null) return null; 120 JsonMap map = new JsonMap(); 121 map.setMap(((JsonMap) o).getMap());TestMetricJsonCreateUtil.java https://gitlab.com/zhengdingke/gmonitor | Java | 23 lines
4 5import com.alibaba.fastjson.JSON; 6import com.zdingke.gmonitor.MetricsJson; 6import com.zdingke.gmonitor.MetricsJson; 7import com.zdingke.gmonitor.utils.MetricJsonCreateUtil; 8 8 9public class TestMetricJsonCreateUtil { 10 12 public void testGetMetricsJsonByServiceType() { 13 MetricsJson metric = MetricJsonCreateUtil.getMetricsJsonByServiceType("kafka", 14 "E:/eclipse/eclipse_pro/kingee_pro/bigdata/ganglia-metric/target/test-classes/unittest"); 19 public void testGetModuleJsonObjByServiceType() { 20 MetricJsonCreateUtil.getModuleJsonObjByServiceType("kafka", "E:/eclipse/eclipse_pro/kingee_pro/bigdata/ganglia-metric/target/test-classes/unittest") 21 .stream().forEach(j -> System.out.println("result:" + JSON.toJSONString(j, true)));PullOldMsgResponse.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 47 lines
2 3import com.alibaba.fastjson.annotation.JSONField; 4 9 // client request id 10 @JSONField(name = "r_id") 11 public long rId; 13 // user chat id 14 @JSONField(name = "user_id") 15 public String userId; 17 // remote chatter id 18 @JSONField(name = "remote_id") 19 public String remoteId; 20 21 @JSONField(name = "group_id") 22 public String groupId;JsonConverter.java https://gitlab.com/BGCX261/zk-full-demo-git.git | Java | 229 lines
11 12import com.alibaba.fastjson.JSON; 13import com.alibaba.fastjson.JSONArray; 13import com.alibaba.fastjson.JSONArray; 14import com.alibaba.fastjson.JSONObject; 15 94 JSONObject origMap = (JSONObject) origObj; 95 JSONObject newMap = new JSONObject(); 96 for (OutputSchemaInfo valueTypeInfo : typeInfo.getChildren()) { 221 String jsonS = IOUtils.toString(JsonConverter.class.getResource("test/s18.o"), "utf8"); 222 Object json = JSON.parse(jsonS); 223 String xmlStr = IOUtils.toString(JsonConverter.class.getResource("test/s18.xml"), "utf8"); 224 OutputSchemaInfo typeInfo = readOutputSchema(xmlStr); 225 JSONObject newJson = (JSONObject) convert(json, typeInfo); 226 System.out.println(JSON.toJSONString(newJson, true));FastjsonDataFormat.java https://github.com/gnodet/camel.git | Java | 221 lines
23 24import com.alibaba.fastjson.JSON; 25import com.alibaba.fastjson.serializer.SerializerFeature; 25import com.alibaba.fastjson.serializer.SerializerFeature; 26import com.alibaba.fastjson.support.config.FastJsonConfig; 27import org.apache.camel.CamelContext; 38/** 39 * Marshal POJOs to JSON and back using <a href="https://github.com/alibaba/fastjson">Fastjson</a> 40 */ 63 64 public FastjsonDataFormat(FastJsonConfig config, Class<?> unmarshalType) { 65 this.config = config; 72 73 public FastjsonDataFormat(FastJsonConfig config, Type unmarshalGenericType) { 74 this.config = config;EhcacheAspect.java https://gitlab.com/spiderworts/ab_weixin_cms | Java | 119 lines
17 18import com.alibaba.fastjson.JSON; 19 113 for (int i = 0; i < arguments.length; i++) { 114 sb.append(".").append(JSON.toJSONString(arguments[i])); 115 }GangliaSink.java https://gitlab.com/zhengdingke/gmonitor | Java | 60 lines
12 13import com.alibaba.fastjson.JSON; 14import com.kingdeehit.bigdata.appmetric.ganglia.GangliaWriter; 46 private void sendDataToGanglia(String data) { 47 MetricInfo info = JSON.parseObject(data,MetricInfo.class); 48 String []strs= info.getGmetadInfo().split(":");LogoutSuccessHandlerImpl.java https://gitlab.com/mrsunchangemyselfsun/ruoyi-vue | Java | 53 lines
10import org.springframework.security.web.authentication.logout.LogoutSuccessHandler; 11import com.alibaba.fastjson.JSON; 12import com.ruoyi.common.constant.Constants; 50 } 51 ServletUtils.renderString(response, JSON.toJSONString(AjaxResult.error(HttpStatus.SUCCESS, "退出成功"))); 52 }SyncSystemUnreadResponse.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 29 lines
2 3import com.alibaba.fastjson.annotation.JSONField; 4import com.linbox.im.message.ByteCreator; 10 // 客户端 request id 11 @JSONField(name = "r_id") 12 public long rId; 14 /** 用户 id */ 15 @JSONField(name = "user_id") 16 public String userId; 18 /** 系统未读数消息,直接复用了 SystemMessage */ 19 @JSONField(name = "unreads") 20 public SystemMessage[] unreads; 22 // status. 200 = success 23 @JSONField(name="status") 24 public int status;IMMessage.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 275 lines
3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.JSONArray; 5import com.alibaba.fastjson.JSONObject; 48 { 49 JSONObject localJSONObject = new JSONObject(); 50 try 115 116 public static boolean parseData(JSONObject paramJSONObject, IMMessage paramIMMessage) 117 { 151 { 152 JSONObject localJSONObject = (JSONObject)JSON.parse(paramString); 153 String str1 = localJSONObject.getString("msg"); 267 { 268 return JSON.toJSONString(this); 269 }Person.java https://github.com/juniorsatanas/SpringSecurityVraptor.git | Java | 69 lines
1package fast_json; 2 2 3import com.alibaba.fastjson.annotation.JSONField; 4 8 9 @JSONField(name = "AGE", serialize = false, deserialize = false) 10 private int age; 11 12 @JSONField(name = "LAST NAME", ordinal = 2) 13 private String lastName; 14 15 @JSONField(name = "FIRST NAME", ordinal = 1) 16 private String firstName; 17 18 @JSONField(name = "DATE OF BIRTH", format = "dd/MM/yyyy", ordinal = 3) 19 private Date dateOfBirth;WaveCutter.scala https://gitlab.com/coinmachine/ares | Scala | 122 lines
2 3import com.alibaba.fastjson.{JSONObject, JSON} 4import com.coinmachine.ares.Logging 21 override def init(): Unit = { 22 val ticker = JSON.parse(user.stockGetV1.ticker(coinType + "_" + currency)).asInstanceOf[JSONObject].getJSONObject("ticker") 23 logInfo(ticker.toJSONString)TestDeserPerf.java git://pkgs.fedoraproject.org/jackson | Java | 244 lines
73 // or another lib? 74// byte[] json = com.alibaba.fastjson.JSON.toJSONString(item, com.alibaba.fastjson.serializer.SerializerFeature.WriteEnumUsingToString).getBytes("UTF-8"); 75 141 msg = "Deserialize, manual, JSON"; 142 sum += testDeser(jsonMapper.getJsonFactory(), json, REPS); 143 break; 146 msg = "Deserialize, manual/FAST, JSON"; 147 sum += testDeserFaster(jsonMapper.getJsonFactory(), json, REPS); 148 break; 174 msg = "Deserialize, fast-json"; 175 sum += testFastJson(json, REPS); 176 break; 232 for (int i = 0; i < reps; ++i) { 233 item = com.alibaba.fastjson.JSON.parseObject(input, MediaItem.class); 234 }WxAuthService.java https://gitlab.com/tycoon/mythopoet | Java | 264 lines
2 3import com.alibaba.fastjson.JSONObject; 4import com.penuel.mythopoet.dao.WxAuthUserDAO; 78 LOGGER.info("WxAuthService.getAccessToken content = "+content); 79 JSONObject obj = JSONObject.parseObject(content); 80// if ( ERR_CODE_INVALID_CRE.equals(obj.getString("errcode")) ){ 95 LOGGER.info("WxAuthService.getAccessToken content = " + content); 96 JSONObject obj = JSONObject.parseObject(content); 97 WxAuthUser wxAuthUser = wxAuthUserDAO.getByOpenId(obj.getString("openid")); 138 String content = HttpClientUtil.sendGetRequest(accessTokenUrl, "UTF-8"); 139 JSONObject obj = JSONObject.parseObject(content); 140 int errcode = obj.getIntValue("errcode"); 154 String content = HttpClientUtil.sendGetSSLRequest(getRefreshJsapiAccesstokenUrl(),"UTF-8"); 155 LOGGER.info("WxAuthService.refreshJsapiAccessToken content = "+content+",authUser="+JSONObject.toJSONString(wxAuthUser)); 156 JSONObject obj = JSONObject.parseObject(content);HttpClientPut.java https://gitlab.com/GavinGJ/MATIRX | Java | 50 lines
9 10import com.alibaba.fastjson.JSONObject; 11import com.danlu.matrix.model.issue; 29 30 JSONObject jo = new JSONObject(); 31 issue issue = new issue(); 36 37 String url = "http://182.92.230.201:3000/issues/6186.json?key=1d893519a4674aa4644704c3f8c86003249db597"; 38 HttpClient client = HttpClientBuilder.create().build(); 39 HttpPut put = new HttpPut(url); 40 put.setHeader("Content-type","application/json;charset=utf-8"); 41TestStringFileTransUtil.java https://gitlab.com/zhengdingke/gmonitor | Java | 31 lines
7 8import com.alibaba.fastjson.JSON; 9import com.zdingke.gmonitor.common.StringFileTransUtil; 15 String x = StringFileTransUtil.file2String(new File(TestStringFileTransUtil.class.getResource("/").getFile().toString() + "nimbus.json"), "GBK"); 16 System.out.println(JSON.toJSON(x)); 17 } 20 public void string2File() { 21 String x = StringFileTransUtil.file2String(new File(TestStringFileTransUtil.class.getResource("/").getFile().toString() + "nimbus.json"), "GBK"); 22 StringFileTransUtil.string2File(x, new File(TestStringFileTransUtil.class.getResource("/").getFile().toString() + "nimbus1.json"));PullOldMsgRequestType.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 54 lines
6 7import com.alibaba.fastjson.JSON; 8 44 45 String json = JSON.toJSONString(a); 46 46 47 A b = JSON.parseObject(json, A.class); 48 48 49 System.out.println(json); 50 System.out.println(b.type.getName());FastJsonResponseBodyConverter.java https://gitlab.com/gzsll/TLint | Java | 33 lines
2 3import com.alibaba.fastjson.JSON; 4import java.io.IOException; 12 */ 13public class FastJsonResponseBodyConverter<T> implements Converter<ResponseBody, T> { 14 17 18 public FastJsonResponseBodyConverter() { 19 } 20 21 public FastJsonResponseBodyConverter(Type type, Charset charset) { 22 this.type = type; 27 try { 28 return JSON.parseObject(value.string(), type); 29 } finally {ServiceShell.java https://gitlab.com/ShaneNilsson/JarToUnity | Java | 82 lines
8 9import com.alibaba.fastjson.JSON; 10import com.youku.login.sns.bean.SinaWeiboToken; 37// public static void getWeiboUserInfo(String access_token, ServiceShellListener<UserSM> serviceShellListener) { 38// StringBuilder sb = new StringBuilder("https://api.weibo.com/2/users/show.json?"); 39// try { 70 String msg = EntityUtils.toString(response.getEntity(), "UTF-8"); 71 listenner.completed(JSON.parseObject(msg, clazz)); 72 } else {OrderController.java https://gitlab.com/tycoon/mythopoet | Java | 329 lines
2 3import com.alibaba.fastjson.JSONObject; 4import com.penuel.mythopoet.annotation.LoginRequired; 71 */ 72 @RequestMapping( value = "/list", method = RequestMethod.POST, produces = "application/json;charset=utf-8" ) @ResponseBody 73 public String list(Model model, @CookieValue( "userId" ) Long userId, @RequestParam( value = "status", defaultValue = "0" ) int status, 94 } 95 LOGGER.info("OrderController.list Sucess: userId=" + userId + ",status=" + status + ",pageNum=" + pageNum + ",pageSize=" + pageSize+",orderViewList="+JSONObject.toJSONString(orderViewList)); 96 } catch ( Exception e ) { 166 LOGGER.info("OrderController.addOrder OK userId=" + userId + ",itemId=" + itemId + ",count=" + count + ",props=" + props + ",addressId=" + addressId 167 + ",remark=" + remark + ",order=" + JSONObject.toJSONString(orderView)); 168 } catch ( Exception e ) { 241 "OrderController.submit userId=" + userId + ",cartDetailIds=" + cartDetailIds + ",addressId=" + addressId + ",remark=" + remark + ",order=" 242 + JSONObject.toJSONString(orderView)); 243 } catch ( Exception e ) {FastJsonRequestBodyConverter.java https://gitlab.com/gzsll/TLint | Java | 28 lines
2 3import com.alibaba.fastjson.JSON; 4import java.io.IOException; 13 */ 14public class FastJsonRequestBodyConverter<T> implements Converter<T, RequestBody> { 15 17 private Charset charset; 18 private static final MediaType MEDIA_TYPE = MediaType.parse("application/json; charset=UTF-8"); 19 19 20 public FastJsonRequestBodyConverter(Type type, Charset charset) { 21 this.type = type; 25 @Override public RequestBody convert(T value) throws IOException { 26 return RequestBody.create(MEDIA_TYPE, JSON.toJSONString(value).getBytes(charset)); 27 }RenderResultAsJsonValve.java git://github.com/webx/citrus.git | Java | 125 lines
20import static com.alibaba.citrus.springext.util.SpringExtUtil.*; 21import static com.alibaba.citrus.turbine.util.TurbineUtil.*; 22import static com.alibaba.citrus.util.StringUtil.*; 27 28import com.alibaba.citrus.service.pipeline.PipelineContext; 29import com.alibaba.citrus.service.pipeline.support.AbstractValveDefinitionParser; 30import com.alibaba.citrus.turbine.TurbineRunData; 31import com.alibaba.fastjson.JSON; 32import org.springframework.beans.factory.annotation.Autowired; 41 */ 42public class RenderResultAsJsonValve extends AbstractInputOutputValve { 43 private static final String DEFAULT_CONTENT_TYPE = "application/json"; 102 PrintWriter out = response.getWriter(); 103 String jsonResult = JSON.toJSONString(resultObject); 104PullOldMsgRequest.java https://gitlab.com/Mr.Tomato/linbox_server | Java | 51 lines
2 3import com.alibaba.fastjson.annotation.JSONField; 4 12 // 客户端 request id 13 @JSONField(name = "r_id") 14 public long rId; 16 // user id 17 @JSONField(name = "user_id") 18 public String userId; 20 // remote id 21 @JSONField(name = "remote_id") 22 public String remoteId; 23 24 @JSONField(name = "group_id") 25 public String groupId;CollectionSerializer.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 195 lines
13 // 0: aload_1 14 // 1: invokevirtual 27 com/alibaba/fastjson/serializer/JSONSerializer:getWriter ()Lcom/alibaba/fastjson/serializer/SerializeWriter; 15 // 4: astore 7 34 // 43: getstatic 50 com/alibaba/fastjson/serializer/SerializerFeature:WriteClassName Lcom/alibaba/fastjson/serializer/SerializerFeature; 35 // 46: invokevirtual 51 com/alibaba/fastjson/serializer/JSONSerializer:isEnabled (Lcom/alibaba/fastjson/serializer/SerializerFeature;)Z 36 // 49: ifeq +29 -> 78 145 // 294: aload 6 146 // 296: invokevirtual 127 com/alibaba/fastjson/serializer/JSONSerializer:getObjectWriter (Ljava/lang/Class;)Lcom/alibaba/fastjson/serializer/ObjectSerializer; 147 // 299: aload_1 163 // 331: aload 4 164 // 333: invokevirtual 136 com/alibaba/fastjson/serializer/JSONSerializer:setContext (Lcom/alibaba/fastjson/serializer/SerialContext;)V 165 // 336: return 168 // 339: aload 4 169 // 341: invokevirtual 136 com/alibaba/fastjson/serializer/JSONSerializer:setContext (Lcom/alibaba/fastjson/serializer/SerialContext;)V 170 // 344: aload_2Json.java https://gitlab.com/taichu/webmagic | Java | 57 lines
2 3import com.alibaba.fastjson.JSON; 4import us.codecraft.xsoup.XTokenQueue; 18 19 public Json(String text) { 20 super(text); 23 /** 24 * remove padding for JSONP 25 * @param padding padding 25 * @param padding padding 26 * @return json after padding removed 27 */ 53 public Selectable jsonPath(String jsonPath) { 54 JsonPathSelector jsonPathSelector = new JsonPathSelector(jsonPath); 55 return selectList(jsonPathSelector,getSourceTexts());Jackson.java https://gitlab.com/sxyseo/dubbox | Java | 49 lines
1package com.alibaba.dubbo.common.json; 2 2 3import com.alibaba.dubbo.common.extension.ExtensionLoader; 4import com.fasterxml.jackson.databind.DeserializationFeature; 4import com.fasterxml.jackson.databind.DeserializationFeature; 5import com.fasterxml.jackson.databind.ObjectMapper; 6import com.fasterxml.jackson.databind.SerializationFeature;Application.java git://github.com/WindowsAzure/azure-sdk-for-java.git | Java | 91 lines
5 6import com.alibaba.fastjson.JSON; 7import com.fasterxml.jackson.core.JsonProcessingException; 7import com.fasterxml.jackson.core.JsonProcessingException; 8import com.fasterxml.jackson.databind.ObjectMapper; 9import org.springframework.beans.factory.annotation.Autowired; 45 return mapper.writeValueAsString(System.getenv()); 46 } catch (JsonProcessingException e) { 47 e.printStackTrace(); 71 } 72 return JSON.toJSONString(list); 73 }JacksonObjectOutput.java https://gitlab.com/sxyseo/dubbox | Java | 122 lines
15 */ 16package com.alibaba.dubbo.common.serialize.support.json; 17 17 18import com.alibaba.dubbo.common.json.Jackson; 19import com.alibaba.dubbo.common.serialize.ObjectOutput; 19import com.alibaba.dubbo.common.serialize.ObjectOutput; 20import com.alibaba.dubbo.common.utils.ReflectUtils; 21import com.fasterxml.jackson.databind.ObjectMapper;StockClient.java https://gitlab.com/coinmachine/ares | Java | 74 lines
2 3import com.alibaba.fastjson.JSONObject; 4import com.okcoin.rest.stock.IStockRestApi; 51 System.out.println(tradeResult); 52 JSONObject tradeJSV1 = JSONObject.parseObject(tradeResult); 53 String tradeOrderV1 = tradeJSV1.getString("order_id");RepeatSubmitInterceptor.java https://gitlab.com/mrsunchangemyselfsun/ruoyi-vue | Java | 55 lines
8import org.springframework.web.servlet.HandlerInterceptor; 9import com.alibaba.fastjson.JSONObject; 10import com.ruoyi.common.annotation.RepeatSubmit; 34 AjaxResult ajaxResult = AjaxResult.error(annotation.message()); 35 ServletUtils.renderString(response, JSONObject.toJSONString(ajaxResult)); 36 return false;UserServiceImpl.java https://gitlab.com/justCallMeLin2/blog | Java | 36 lines
2 3import com.alibaba.fastjson.JSON; 4 29 30 String jsonString = JSON.toJSONString(group); 31 31 32 System.out.println(jsonString); 33*/AddressUtils.java https://gitlab.com/mrsunchangemyselfsun/ruoyi-vue | Java | 55 lines
4import org.slf4j.LoggerFactory; 5import com.alibaba.fastjson.JSONObject; 6import com.ruoyi.common.config.RuoYiConfig; 20 // IP地址查询 21 public static final String IP_URL = "http://whois.pconline.com.cn/ipJson.jsp"; 22 36 { 37 String rspStr = HttpUtils.sendGet(IP_URL, "ip=" + ip + "&json=true", Constants.GBK); 38 if (StringUtils.isEmpty(rspStr)) 42 } 43 JSONObject obj = JSONObject.parseObject(rspStr); 44 String region = obj.getString("pro");CPLoginActivity.java https://gitlab.com/zhangxiaang/CloudPrint4AndroidManager | Java | 196 lines
11 12import com.alibaba.fastjson.JSONObject; 13import com.avos.avoscloud.AVException; 140 EmptyViewUtil.closeLoadingDialog(); 141 JSONObject result = (JSONObject) params[0]; 142 if (result.getInteger("error") != 0) { 145 } 146 JSONObject info = result.getJSONArray("results").getJSONObject(0); 147 SharedPreferenceUtil.storage_Token(ref.get(),ImBlackList.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 155 lines
5import android.content.SharedPreferences.Editor; 6import com.alibaba.fastjson.JSON; 7import com.alibaba.fastjson.JSONArray; 7import com.alibaba.fastjson.JSONArray; 8import com.alibaba.fastjson.JSONObject; 9import fm.qingting.framework.controller.ViewController; 67 return null; 68 paramContext = (JSONArray)JSONArray.parse(paramContext); 69 if (paramContext != null) 71 { 72 JSONObject localJSONObject = paramContext.getJSONObject(i); 73 BlackListItem localBlackListItem = new BlackListItem(); 143 return; 144 str = JSON.toJSONString(sBlackList); 145 }AjaxJson.java https://gitlab.com/spiderworts/ab_weixin_cms | Java | 58 lines
1package org.jeecgframework.core.common.model.json; 2 4 5import com.alibaba.fastjson.JSONObject; 6 12 */ 13public class AjaxJson { 14 50 public String getJsonStr(){ 51 JSONObject obj = new JSONObject(); 52 obj.put("success", this.isSuccess()); 55 obj.put("attributes", this.attributes); 56 return obj.toJSONString(); 57 }JSONWrapper.java git://github.com/greenlaw110/Rythm.git | Java | 106 lines
28import com.alibaba.fastjson.JSON; 29import com.alibaba.fastjson.JSONArray; 30import com.alibaba.fastjson.JSONObject; 41 /** 42 * Construct a JSONWrapper with a JSON string. If the string is not valid JSON, then 43 * a RuntimeException will thrown out 51 o = JSON.parse(str); 52 } catch (com.alibaba.fastjson.JSONException e) { 53 throw new RuntimeException("Invalid JSON string: " + str); 57 } else { 58 throw new RuntimeException("JSON string parse to unknown object type: " + o.getClass()); 59 } 64 * 65 * @return true if the JSON data is an array 66 */MineInfoActivity.java https://gitlab.com/zhangxiaang/CloudPrint4AndroidManager | Java | 493 lines
18import com.alibaba.fastjson.JSON; 19import com.alibaba.fastjson.JSONArray; 20import com.alibaba.fastjson.JSONObject; 137 JSONObject result = (JSONObject) params[0]; 138 JSONObject info = result.getJSONArray("results").getJSONObject(0); 139 if (result.getInteger("error") != 0 || info.getInteger("state") != 2) { 259 schoolInfos = new ArrayList<>(); 260 JSONObject result = (JSONObject) params[0]; 261 if (result.getInteger("error") != 0) { 264 } 265 JSONArray array = result.getJSONArray("results"); 266 if (array.size() == 0) { 270 for (int i = 0; i < array.size(); i++) { 271 SchoolInfo school = JSON.parseObject(array.getJSONObject(i).toJSONString(), SchoolInfo.class); 272 schoolInfos.add(school);ImproveInfoActivity.java https://gitlab.com/zhangxiaang/CloudPrint4AndroidManager | Java | 441 lines
21 22import com.alibaba.fastjson.JSON; 23import com.alibaba.fastjson.JSONArray; 23import com.alibaba.fastjson.JSONArray; 24import com.alibaba.fastjson.JSONObject; 25import com.rengwuxian.materialedittext.MaterialAutoCompleteTextView; 154 schoolInfos = new ArrayList<>(); 155 JSONObject result = (JSONObject) params[0]; 156 if (result.getInteger("error") != 0) { 159 } 160 JSONArray array = result.getJSONArray("results"); 161 if (array.size() == 0) { 165 for (int i = 0; i < array.size(); i++) { 166 SchoolInfo school = JSON.parseObject(array.getJSONObject(i).toJSONString(), SchoolInfo.class); 167 schoolInfos.add(school);JsonPathSelectorTest.java https://gitlab.com/taichu/webmagic | Java | 55 lines
3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.JSONObject; 5import org.junit.Test; 38 public void testJsonPath() { 39 JsonPathSelector jsonPathSelector = new JsonPathSelector("$.store.book[*].author"); 40 String select = jsonPathSelector.select(text); 43 assertThat(list).contains("Nigel Rees","Evelyn Waugh"); 44 jsonPathSelector = new JsonPathSelector("$.store.book[?(@.category == 'reference')].title"); 45 list = jsonPathSelector.selectList(text); 48 assertThat(list).contains("Sayings of the Century"); 49 jsonPathSelector = new JsonPathSelector("$.store.book[?(@.category == 'reference')]"); 50 select = jsonPathSelector.select(text); 51 JSONObject object1= JSON.parseObject(select); 52 JSONObject object2=JSON.parseObject("{\"author\":\"Nigel Rees\",\"title\":\"Sayings of the Century\",\"category\":\"reference\",\"price\":8.95}"); 53 assertThat(object1).isEqualTo(object2);ThreadLocalCache.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 116 lines
1package com.alibaba.fastjson.util; 2 113/* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar 114 * Qualified Name: com.alibaba.fastjson.util.ThreadLocalCache 115 * JD-Core Version: 0.6.2UserProfile.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 493 lines
2 3import com.alibaba.fastjson.JSONArray; 4import com.alibaba.fastjson.JSONObject; 53 54 private UserInfo parseUserInfo(JSONObject paramJSONObject) 55 { 268 this.lstFollowers = new ArrayList(); 269 paramResult = ((JSONObject)paramResult.getData()).getJSONArray("data"); 270 if (paramResult == null) 300 this.lstFollowings = new ArrayList(); 301 paramResult = ((JSONObject)paramResult.getData()).getJSONArray("data"); 302 if (paramResult == null) 331 { 332 paramResult = ((JSONObject)paramResult.getData()).getJSONObject("data"); 333 if ((paramResult != null) && (this.mUserKey != null))ShareUtil.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 926 lines
8import android.widget.Toast; 9import com.alibaba.fastjson.JSON; 10import com.alibaba.fastjson.JSONObject;NetParser.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 3881 lines
5import com.alibaba.fastjson.JSON; 6import com.alibaba.fastjson.JSONArray; 7import com.alibaba.fastjson.JSONObject; 183 localChannelNode.programCnt = ((JSONObject)localObject).getIntValue("program_count"); 184 paramJSONObject = ((JSONObject)localObject).getJSONArray("authors"); 185 if (paramJSONObject == null) 207 } 208 label422: paramJSONObject = ((JSONObject)localObject).getJSONArray("broadcasters"); 209 if (paramJSONObject != null) 283 localObject = new BroadcasterNode(); 284 JSONObject localJSONObject = paramJSONObject.getJSONObject(paramInt); 285 ((BroadcasterNode)localObject).id = localJSONObject.getIntValue("id"); 307 { 308 JSONArray localJSONArray = paramJSONObject.getJSONArray("mediacenters"); 309 double d = paramJSONObject.getDoubleValue("preference_change_cost");IMAgent.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 1960 lines
8import android.widget.Toast; 9import com.alibaba.fastjson.JSON; 10import com.alibaba.fastjson.JSONArray; 10import com.alibaba.fastjson.JSONArray; 11import com.alibaba.fastjson.JSONObject; 12import fm.qingting.framework.data.DataManager; 90 private Handler mDispatchHandler = new DispatchHandler(Looper.getMainLooper()); 91 private JSONObject mJsonMsg = new JSONObject(); 92 private String mLastFromId = null; 360 { 361 paramString = (JSONObject)JSON.parse(paramString); 362 String str = paramString.getString("event"); 476 { 477 JSONObject localJSONObject = new JSONObject(); 478 localJSONObject.put("event", "login");WebViewPlayer.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 1145 lines
11import cn.com.mma.mobile.tracking.api.Countly; 12import com.alibaba.fastjson.JSON; 13import com.alibaba.fastjson.JSONObject;TypeUtils.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 1039 lines
1package com.alibaba.fastjson.util; 2 2 3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.JSONException; 4import com.alibaba.fastjson.JSONException; 5import com.alibaba.fastjson.JSONObject; 6import com.alibaba.fastjson.annotation.JSONField; 6import com.alibaba.fastjson.annotation.JSONField; 7import com.alibaba.fastjson.annotation.JSONType; 8import com.alibaba.fastjson.parser.JSONScanner; 8import com.alibaba.fastjson.parser.JSONScanner; 9import com.alibaba.fastjson.parser.ParserConfig; 10import com.alibaba.fastjson.parser.deserializer.FieldDeserializer; 221 return cast(paramObject, (Type)localObject2, paramParserConfig); 222 throw new JSONException("can not cast to : " + paramParameterizedType); 223 }DeserializeBeanInfo.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 432 lines
1package com.alibaba.fastjson.util; 2 2 3import com.alibaba.fastjson.JSONException; 4import com.alibaba.fastjson.annotation.JSONCreator; 4import com.alibaba.fastjson.annotation.JSONCreator; 5import com.alibaba.fastjson.annotation.JSONField; 6import java.beans.Introspector; 211 localObject2 = ((Field)localObject4).getName(); 212 localObject5 = (JSONField)((Field)localObject4).getAnnotation(JSONField.class); 213 localObject1 = localObject2; 261 paramClass = arrayOfConstructor[i]; 262 if ((JSONCreator)paramClass.getAnnotation(JSONCreator.class) == null) 263 break label55; 429/* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar 430 * Qualified Name: com.alibaba.fastjson.util.DeserializeBeanInfo 431 * JD-Core Version:SerializeWriter.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 2016 lines
1package com.alibaba.fastjson.serializer; 2 2 3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.JSONException; 4import com.alibaba.fastjson.JSONException; 5import com.alibaba.fastjson.parser.CharTypes; 6import com.alibaba.fastjson.util.Base64; 6import com.alibaba.fastjson.util.Base64; 7import com.alibaba.fastjson.util.IOUtils; 8import java.io.IOException; 35 this.writer = paramWriter; 36 this.features = JSON.DEFAULT_GENERATE_FEATURE; 37 paramWriter = (SoftReference)bufLocal.get();JSONSerializer.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 595 lines
1package com.alibaba.fastjson.serializer; 2 2 3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.JSONAware; 4import com.alibaba.fastjson.JSONAware; 5import com.alibaba.fastjson.JSONException; 6import com.alibaba.fastjson.JSONStreamAware; 6import com.alibaba.fastjson.JSONStreamAware; 7import com.alibaba.fastjson.util.ServiceLoader; 8import java.io.IOException; 50 @Deprecated 51 public JSONSerializer(JSONSerializerMap paramJSONSerializerMap) 52 { 55 56 public JSONSerializer(SerializeConfig paramSerializeConfig) 57 {ASMSerializerFactory.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 1380 lines
2 3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.JSONException; 5import com.alibaba.fastjson.annotation.JSONField; 6import com.alibaba.fastjson.annotation.JSONType; 7import com.alibaba.fastjson.asm.ClassWriter; 7import com.alibaba.fastjson.asm.ClassWriter; 8import com.alibaba.fastjson.asm.FieldVisitor; 9import com.alibaba.fastjson.asm.Label; 9import com.alibaba.fastjson.asm.Label; 10import com.alibaba.fastjson.asm.MethodVisitor; 11import com.alibaba.fastjson.asm.Opcodes; 15import com.alibaba.fastjson.util.FieldInfo; 16import com.alibaba.fastjson.util.TypeUtils; 17import java.lang.reflect.Field;JavaBeanDeserializer.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 649 lines
2 3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.JSONException; 4import com.alibaba.fastjson.JSONException; 5import com.alibaba.fastjson.JSONObject; 6import com.alibaba.fastjson.parser.DefaultJSONParser; 6import com.alibaba.fastjson.parser.DefaultJSONParser; 7import com.alibaba.fastjson.parser.DefaultJSONParser.ResolveTask; 8import com.alibaba.fastjson.parser.Feature; 8import com.alibaba.fastjson.parser.Feature; 9import com.alibaba.fastjson.parser.JSONLexer; 10import com.alibaba.fastjson.parser.JSONToken; 15import com.alibaba.fastjson.util.FieldInfo; 16import com.alibaba.fastjson.util.TypeUtils; 17import java.lang.reflect.Constructor;ASMDeserializerFactory.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 1230 lines
6import com.alibaba.fastjson.asm.Label; 7import com.alibaba.fastjson.asm.MethodVisitor; 8import com.alibaba.fastjson.asm.Opcodes; 8import com.alibaba.fastjson.asm.Opcodes; 9import com.alibaba.fastjson.parser.DefaultJSONParser; 10import com.alibaba.fastjson.parser.DefaultJSONParser.ResolveTask; 11import com.alibaba.fastjson.parser.Feature; 12import com.alibaba.fastjson.parser.JSONLexer; 13import com.alibaba.fastjson.parser.JSONLexerBase; 13import com.alibaba.fastjson.parser.JSONLexerBase; 14import com.alibaba.fastjson.parser.JSONToken; 15import com.alibaba.fastjson.parser.ParseContext; 15import com.alibaba.fastjson.parser.ParseContext; 16import com.alibaba.fastjson.parser.ParserConfig; 17import com.alibaba.fastjson.parser.SymbolTable;ParserConfig.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 522 lines
1package com.alibaba.fastjson.parser; 2 2 3import com.alibaba.fastjson.JSONArray; 4import com.alibaba.fastjson.JSONException; 4import com.alibaba.fastjson.JSONException; 5import com.alibaba.fastjson.JSONObject; 6import com.alibaba.fastjson.annotation.JSONType; 6import com.alibaba.fastjson.annotation.JSONType; 7import com.alibaba.fastjson.asm.ASMException; 8import com.alibaba.fastjson.parser.deserializer.ASMDeserializerFactory; 8import com.alibaba.fastjson.parser.deserializer.ASMDeserializerFactory; 9import com.alibaba.fastjson.parser.deserializer.ASMJavaBeanDeserializer; 10import com.alibaba.fastjson.parser.deserializer.ASMJavaBeanDeserializer.InnerJavaBeanDeserializer; 38import com.alibaba.fastjson.parser.deserializer.IntegerFieldDeserializer; 39import com.alibaba.fastjson.parser.deserializer.JSONArrayDeserializer; 40import com.alibaba.fastjson.parser.deserializer.JSONObjectDeserializer;JSONScanner.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 1167 lines
1package com.alibaba.fastjson.parser; 2 2 3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.JSONException; 4import com.alibaba.fastjson.JSONException; 5import com.alibaba.fastjson.util.Base64; 6import java.util.ArrayList; 12 13public final class JSONScanner extends JSONLexerBase 14{ 14{ 15 protected static final char[] typeFieldName = ("\"" + JSON.DEFAULT_TYPE_KEY + "\":\"").toCharArray(); 16 public final int ISO8601_LEN_0 = "0000-00-00".length(); 20 21 public JSONScanner(String paramString) 22 {JSONLexerBase.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 3084 lines
1package com.alibaba.fastjson.parser; 2 2 3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.JSONException; 13 14public abstract class JSONLexerBase 15 implements JSONLexer, Closeable 22 protected static final int[] digits; 23 protected static final char[] typeFieldName = ("\"" + JSON.DEFAULT_TYPE_KEY + "\":\"").toCharArray(); 24 protected static boolean[] whitespaceFlags = new boolean[256]; 28 protected int eofPos; 29 protected int features = JSON.DEFAULT_PARSER_FEATURE; 30 protected boolean hasSpecial; 67 68 public JSONLexerBase() 69 {DefaultJSONParser.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 1380 lines
2 3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.JSONArray; 4import com.alibaba.fastjson.JSONArray; 5import com.alibaba.fastjson.JSONException; 6import com.alibaba.fastjson.JSONObject; 141 } 142 throw new JSONException("syntax error, expect " + JSONToken.name(paramInt) + ", actual " + JSONToken.name(localJSONLexer.token())); 143 } 152 } 153 throw new JSONException("syntax error, expect " + JSONToken.name(paramInt1) + ", actual " + JSONToken.name(localJSONLexer.token())); 154 } 218 if ((isEnabled(Feature.AutoCloseSource)) && (localJSONLexer.token() != 20)) 219 throw new JSONException("not close json text, token : " + JSONToken.name(localJSONLexer.token())); 220 }CharTypes.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 112 lines
1package com.alibaba.fastjson.parser; 2 109/* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar 110 * Qualified Name: com.alibaba.fastjson.parser.CharTypes 111 * JD-Core Version: 0.6.2FeatureFunction.java https://gitlab.com/Er_Hei/PlayCar.git | Java | 1360 lines
46 47import com.alibaba.fastjson.JSON; 48import com.google.zxing.BarcodeFormat;BaseHttpClient.java https://gitlab.com/chgocn/AndPlug.git | Java | 193 lines
3import android.content.Context; 4import com.alibaba.fastjson.JSON; 5import com.loopj.android.http.AsyncHttpClient; 21public abstract class BaseHttpClient { 22 protected final static String CONTENT_TYPE_JSON = "application/json"; 23 protected final static String CONTENT_TYPE_XML = "application/xml"; 110 // [+] post entity 111 public static void postJSON(Context context, String url, JSON json, AsyncHttpResponseHandler responseHandler) { 112 postJSON(false, context, url, json, responseHandler); 114 115 public static void postJSON(boolean async, Context context, String url, JSON json, AsyncHttpResponseHandler responseHandler) { 116 ByteArrayEntity entity = new ByteArrayEntity(json.toString().getBytes()); 124 125 public static void postJSON(boolean async, String url, JSON json, AsyncHttpResponseHandler responseHandler) { 126 postJSON(async, null, url, json, responseHandler);CommentAdapter.java https://gitlab.com/zwp/Zhonghua | Java | 210 lines
15 16import com.alibaba.fastjson.JSONObject; 17import com.lidroid.xutils.exception.HttpException; 116 public void onSuccess(ResponseInfo<String> arg0) { 117 JSONObject jsonObject = JSONObject 118 .parseObject(arg0.result); 119 Toast.makeText(context, 120 jsonObject.getString("resultdesc"), 121 2000).show(); 121 2000).show(); 122 if (jsonObject.getString("resultcode") 123 .equals("ok")) { 178 public void onSuccess(ResponseInfo<String> arg0) { 179 JSONObject jsonObject = JSONObject 180 .parseObject(arg0.result);UserController.java https://github.com/dawnsait/holywar.git | Java | 78 lines
19 20import com.alibaba.fastjson.JSON; 21import com.fasheng.common.constants.ResponseCodeEnum; 48 public String register(@RequestParam("requestInfo") String requestInfo, ModelMap model) { 49 UserRequest userRequest = JSON.parseObject(requestInfo, UserRequest.class); 50 UserDTO userDTO = UserHelper.buildUserDTO(userRequest); 59 } 60 return JSON.toJSONString(response); 61 } 68 partnerUserService.insert(dto); 69 return JSON.toJSONString(dto); 70 } 75 response.setMsg("aaaaaa"); 76 System.out.println(JSON.toJSONString(response)); 77 }CustomAsyncHttpClient.java https://gitlab.com/huangjunbin/YNS.git | Java | 117 lines
8import com.yns.model.ResponeModel; 9import com.yns.util.JsonUtil; 10import com.yns.util.LogUtil; 36 * RequestParams newParams = new RequestParams(); 37 * com.alibaba.fastjson.JSONObject jsonObject = new 38 * com.alibaba.fastjson.JSONObject(); for (BasicNameValuePair param : 39 * requestModel.getParams() .getParamsList()) { 40 * jsonObject.put(param.getName(), param.getValue()); } 41 * 43 * 44 * newParams.put("p", jsonObject.toString()); 45 */ 84 // TODO:解密返回的参数 85 baseModel = JsonUtil.convertJsonToObject(content, 86 ResponeModel.class);BarcodeActivity.java https://bitbucket.org/viomi_team/viomi_oven.git | Java | 127 lines
11// 12//import com.alibaba.fastjson.JSON; 13//import com.bumptech.glide.Glide; 109// Log.i(TAG, "onSuccessDone: " + result); 110// Barcode barcode = JSON.parseObject(result, Barcode.class); 111// if (barcode == null) {SymbolTable.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 256 lines
1package com.alibaba.fastjson.parser; 2 2 3import com.alibaba.fastjson.JSON; 4 19 addSymbol("$ref", 0, 4, "$ref".hashCode()); 20 addSymbol(JSON.DEFAULT_TYPE_KEY, 0, 4, JSON.DEFAULT_TYPE_KEY.hashCode()); 21 } 253/* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar 254 * Qualified Name: com.alibaba.fastjson.parser.SymbolTable 255 * JD-Core Version: 0.6.2XStreamLoopTest.java git://github.com/pangwu86/XBlink.git | Java | 165 lines
11 12import com.alibaba.fastjson.JSON; 13import com.alibaba.fastjson.serializer.SerializerFeature; 119 public void toJSON1() throws Exception { 120 String json = JSON.toJSONString(getLoopA(), SerializerFeature.PrettyFormat); 121 System.out.println(json); 125 public void toJSON1_2() throws Exception { 126 String json = JSON.toJSONString(getLoopC(), SerializerFeature.PrettyFormat); 127 System.out.println(json); 137 public void toJSON2() throws Exception { 138 String json = JSON.toJSONString(getLoopA2(), SerializerFeature.PrettyFormat); 139 System.out.println(json); 154 public void toJSON3() throws Exception { 155 String json = JSON.toJSONString(getLoopA3(), SerializerFeature.PrettyFormat); 156 System.out.println(json);CustomAsyncHttpClient.java https://gitlab.com/huangjunbin/pupu.git | Java | 397 lines
18import org.apache.http.message.BasicNameValuePair; 19import org.json.JSONException; 20import org.json.JSONObject; 44 RequestParams newParams = new RequestParams(); 45 com.alibaba.fastjson.JSONObject jsonObject = new com.alibaba.fastjson.JSONObject(); 46 for (BasicNameValuePair param : requestModel.getParams() 140 } else { 141 baseModel.setResult(JsonUtil.convertJsonToObject( 142 baseModel.getData(), 230 RequestParams newParams = new RequestParams(); 231 com.alibaba.fastjson.JSONObject jsonObject = new com.alibaba.fastjson.JSONObject(); 232 for (BasicNameValuePair param : requestModel.getParams() 271 try { 272 jsonobj = new JSONObject(content); 273RouteInvocation.java https://gitlab.com/xialeizhou/resty | Java | 331 lines
14import cn.dreampie.route.valid.Valid; 15import com.alibaba.fastjson.JSONArray; 16import com.alibaba.fastjson.JSONException; 195 } 196 boolean hasJsonParam = null != json && !"".equals(json); 197 Map<String, Object> paramsMap = null; 278 else 279 ((List<Object>) newblist).add(Jsoner.parseObject(Jsoner.toJSONString(e), paramTypeClass)); 280 } 307 else 308 ((Set<Object>) newbset).add(Jsoner.parseObject(Jsoner.toJSONString(e), paramTypeClass)); 309 } 314 } else { 315 params.set(name, Jsoner.parseObject(Jsoner.toJSONString(obj), paramType)); 316 }WechatController.java https://gitlab.com/Simon0622/web.git | Java | 1147 lines
2 3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.JSONObject; 133 logger.info("step one {}", result); 134 JSONObject jsonObject = JSON.parseObject(result); 135 String access_token = jsonObject.getString("access_token"); 178 logger.info("step one {}", result); 179 JSONObject jsonObject = JSON.parseObject(result); 180 String access_token = jsonObject.getString("access_token"); 221 logger.info("step one {}", result); 222 JSONObject jsonObject = JSON.parseObject(result); 223 String access_token = jsonObject.getString("access_token"); 236 + "&lang=zh_CN"); 237 jsonObject = JSON.parseObject(result); 238 logger.info("ucenter user is {}", jsonObject.toString());RecFeedbackActivity.java https://gitlab.com/call_me_xyz/HelthNut | Java | 666 lines
23 24import com.alibaba.fastjson.JSON; 25import com.android.volley.Response;CfgParser.java https://gitlab.com/BGCX261/zk-full-demo-git.git | Java | 354 lines
13import com.alibaba.fastjson.JSONArray; 14import com.alibaba.fastjson.JSONObject; 15 197 } else if (mapJson != null && mapJson instanceof JSONObject) { 198 JSONObject jsonObj = (JSONObject) mapJson; 199 partJson = jsonObj.get(partInfo.getId()); 213 if (listJson != null && listJson instanceof JSONArray) { 214 JSONArray jsonArray = (JSONArray) listJson; 215 for (Object eleJson : jsonArray) { 227 if (mapsJson != null && mapsJson instanceof JSONObject) { 228 JSONObject jsonObj = (JSONObject) mapsJson; 229 for (String key : jsonObj.keySet()) { 242 if (mapsJson != null && mapsJson instanceof JSONObject) { 243 JSONObject jsonObj = (JSONObject) mapsJson; 244 for (String key : jsonObj.keySet()) {DefaultJacksonObjectMapperProvider.java https://gitlab.com/sxyseo/dubbox | Java | 22 lines
1package com.alibaba.dubbo.common.json; 2 2 3import com.fasterxml.jackson.databind.DeserializationFeature; 4import com.fasterxml.jackson.databind.ObjectMapper; 4import com.fasterxml.jackson.databind.ObjectMapper; 5import com.fasterxml.jackson.databind.SerializationFeature; 6CPRegisteActivity.java https://gitlab.com/zhangxiaang/CloudPrint4AndroidManager | Java | 134 lines
10 11import com.alibaba.fastjson.JSONObject; 12import com.dd.processbutton.FlatButton; 91 if (params[0] instanceof JSONObject) { 92 JSONObject jsonObject = (JSONObject) params[0]; 93 if (jsonObject.getInteger("error") == -1) {BrokerStartup.java https://gitlab.com/xialeizhou/RocketMQ | Java | 288 lines
15 */ 16package com.alibaba.rocketmq.broker; 17 35import com.alibaba.rocketmq.common.MQVersion; 36import com.alibaba.rocketmq.common.MixAll; 37import com.alibaba.rocketmq.common.conflict.PackageConflictDetect; 38import com.alibaba.rocketmq.common.constant.LoggerName; 39import com.alibaba.rocketmq.remoting.common.RemotingUtil; 40import com.alibaba.rocketmq.remoting.netty.NettyClientConfig; 40import com.alibaba.rocketmq.remoting.netty.NettyClientConfig; 41import com.alibaba.rocketmq.remoting.netty.NettyServerConfig; 42import com.alibaba.rocketmq.remoting.netty.NettySystemConfig; 96 // 检测包冲突 97 PackageConflictDetect.detectFastjson(); 98StackTraceElementDeserializer.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 212 lines
2 3import com.alibaba.fastjson.JSON; 4import com.alibaba.fastjson.JSONException; 4import com.alibaba.fastjson.JSONException; 5import com.alibaba.fastjson.parser.DefaultJSONParser; 6import com.alibaba.fastjson.parser.Feature; 6import com.alibaba.fastjson.parser.Feature; 7import com.alibaba.fastjson.parser.JSONLexer; 8import com.alibaba.fastjson.parser.JSONToken; 17 { 18 JSONLexer localJSONLexer = paramDefaultJSONParser.getLexer(); 19 if (localJSONLexer.token() == 8) 209/* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar 210 * Qualified Name: com.alibaba.fastjson.parser.deserializer.StackTraceElementDeserializer 211 * JD-Core Version: 0.6.2SearchController.java https://gitlab.com/tycoon/mythopoet | Java | 142 lines
2 3import com.alibaba.fastjson.JSONObject; 4import com.penuel.mythopoet.model.Designer; 52 53 @RequestMapping( value = "", method = RequestMethod.POST, produces = "application/json;charset=utf-8" ) @ResponseBody 54 public String search(Model model, @RequestParam( value = "key", defaultValue = "" ) String key, 114 int maxCount = page.getCurPageNum() * page.getPageSize(); 115 LOGGER.info("SearchController.search Info:key=" + key + ",page=" + JSONObject.toJSONString(page) + ",but itemList.size=" + itemList.size()); 116 if ( itemList.size() > maxCount ) {MyReply.java https://gitlab.com/zwp/Zhonghua | Java | 209 lines
16 17import com.alibaba.fastjson.JSONArray; 18import com.alibaba.fastjson.JSONObject; 176 System.out.println("success"); 177 JSONObject jsonObject = JSONObject 178 .parseObject(responseInfo.result); 179 System.out.println(jsonObject.get("resultcode")); 180 JSONObject json = JSONObject.parseObject(jsonObject 181 .toString()); 182 totalPage = json.getIntValue("totalPages"); 183 JSONArray jsonArray = json.getJSONArray("resultdata"); 184 List<Reply> datas = JSONArray.parseArray(jsonArray.toJSONString(),HttpClient.java https://bitbucket.org/bindalgangaaram/rc-my-job.git | Java | 91 lines
2 3import com.alibaba.fastjson.JSON; 4import com.ringcentral.RestException; 18 19 private static final MediaType jsonMediaType = MediaType.parse("application/json; charset=utf-8"); 20 protected String server; 37 public ResponseBody post(String endpoint, Object object, QueryParameter... queryParameters) throws IOException, com.ringcentral.RestException { 38 RequestBody body = RequestBody.create(jsonMediaType, JSON.toJSONString(object)); 39 HttpUrl url = buildUrl(endpoint, queryParameters); 48 public ResponseBody put(String endpoint, Object object, QueryParameter... queryParameters) throws IOException, com.ringcentral.RestException { 49 RequestBody body = RequestBody.create(jsonMediaType, JSON.toJSONString(object)); 50 HttpUrl url = buildUrl(endpoint, queryParameters); 66 public <T> T get(String endpoint, Type type, QueryParameter... queryParameters) throws IOException, com.ringcentral.RestException { 67 return JSON.parseObject(get(endpoint, queryParameters).string(), type); 68 }ArrivedOrdersAdapter.java https://gitlab.com/zhangxiaang/CloudPrint4AndroidManager | Java | 119 lines
14 15import com.alibaba.fastjson.JSONArray; 16import com.alibaba.fastjson.JSONObject; 27 private LayoutInflater inflater; 28 private JSONArray array; 29 private Context context; 30 31 public ArrivedOrdersAdapter(Context context, JSONArray data) { 32 this.context = context; 44 if (this.array != null) { 45 JSONObject result = array.getJSONObject(position); 46 int rate = result.getInteger("rate"); 64 65 public void addAll(JSONArray array1) { 66 synchronized (this) {FastJsonHttpResponseHandler.java https://gitlab.com/chgocn/AndPlug.git | Java | 237 lines
3import android.util.Log; 4import com.alibaba.fastjson.JSON; 5import com.alibaba.fastjson.JSONArray; 5import com.alibaba.fastjson.JSONArray; 6import com.alibaba.fastjson.JSONException; 7import com.alibaba.fastjson.JSONObject; 14 * Used to intercept and handle the responses from requests made using {@link AsyncHttpClient}, 15 * with automatic parsing into a {@link JSONObject} or {@link JSONArray}. 16 * This class is designed to be passed to get, post, put and delete requests with the 29 /** 30 * Creates new FastJsonHttpResponseHandler, with JSON String encoding UTF-8 31 */ 36 /** 37 * Creates new FastJsonHttpResponseHandler with given JSON String encoding 38 *AShortIntroductionToLucene.java https://gitlab.com/doctorwho1986/doctor.git | Java | 241 lines
31 32import com.alibaba.fastjson.JSON; 33 183 public String toString() { 184 return JSON.toJSONString(this); 185 }ArrayDeserializer.java https://gitlab.com/qt-prometheus/qt-prometheus.git | Java | 147 lines
1package com.alibaba.fastjson.parser.deserializer; 2 3import com.alibaba.fastjson.JSONArray; 4import com.alibaba.fastjson.parser.DefaultJSONParser; 5import com.alibaba.fastjson.parser.JSONLexer; 5import com.alibaba.fastjson.parser.JSONLexer; 6import com.alibaba.fastjson.parser.ParseContext; 7import com.alibaba.fastjson.util.TypeUtils; 19 20 private <T> T toObjectArray(DefaultJSONParser paramDefaultJSONParser, Class<?> paramClass, JSONArray paramJSONArray) 21 { 49 int k = 0; 50 JSONArray localJSONArray = (JSONArray)localObject3; 51 int n = localJSONArray.size(); 144/* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar 145 * Qualified Name: com.alibaba.fastjson.parser.deserializer.ArrayDeserializer 146 * JD-Core Version: 0.6.2Position.java https://gitlab.com/scottqq/LagouClawer | Java | 272 lines
7 8import com.alibaba.fastjson.JSON; 9import com.alibaba.fastjson.JSONObject; 68 69 public static Position create(String json) 70 { 71 Position position = new Position(); 72 JSONObject obj = JSON.parseObject(json); 73 position.setPositionId(obj.getString("positionId"));JsonParse.java https://gitlab.com/BGCX067/family-teacher-svn-to-git | Java | 522 lines
7import com.alibaba.fastjson.JSON; 8import com.alibaba.fastjson.JSONArray; 9import com.alibaba.fastjson.JSONObject; 315 ArrayList<TeacherCollectInfo> list = new ArrayList<TeacherCollectInfo>(); 316 JSONArray sJsonArray = json.getJSONArray("mcollect"); 317 for (Object object : sJsonArray) { 389 JSONObject json = JSON.parseObject(str); 390 JSONObject jsonInfo = json.getJSONObject("myinfo"); 391 ro.result = true; 409 if(success) { 410 JSONArray jsonArray = json.getJSONArray("mteachers"); 411 ArrayList<MyTeacherListItemInfo> list = new ArrayList<MyTeacherListItemInfo>(); 436 if(success) { 437 JSONArray jsonArray = json.getJSONArray("inform"); 438 ArrayList<MyTeacherNotificationInfo> list = new ArrayList<MyTeacherNotificationInfo>();LocationController.java https://github.com/dawnsait/holywar.git | Java | 32 lines
10 11import com.alibaba.fastjson.JSON; 12import com.fasheng.service.dto.ProvinceDTO; 23 List<ProvinceDTO> provinceList = provinceService.getAllProvinces(); 24 return JSON.toJSONString(provinceList); 25 }CRAggregationBolt.java https://gitlab.com/penuel/rocketmq-storm.git | Java | 263 lines
1package com.alibaba.rocketmq.storm.bolt; 2 7import backtype.storm.tuple.Tuple; 8import com.alibaba.fastjson.JSON; 9import com.alibaba.rocketmq.common.message.MessageExt; 9import com.alibaba.rocketmq.common.message.MessageExt; 10import com.alibaba.rocketmq.storm.hbase.HBaseClient; 11import com.alibaba.rocketmq.storm.hbase.Helper; 11import com.alibaba.rocketmq.storm.hbase.Helper; 12import com.alibaba.rocketmq.storm.hbase.exception.HBasePersistenceException; 13import com.alibaba.rocketmq.storm.model.CRLog; 13import com.alibaba.rocketmq.storm.model.CRLog; 14import com.alibaba.rocketmq.storm.model.HBaseData; 15import com.alibaba.rocketmq.storm.redis.CacheManager; 15import com.alibaba.rocketmq.storm.redis.CacheManager; 16import com.alibaba.rocketmq.storm.redis.Constant; 17import org.slf4j.Logger;ZiXunFragment.java https://gitlab.com/zwp/Zhonghua | Java | 615 lines
34import com.alibaba.fastjson.JSONArray; 35import com.alibaba.fastjson.JSONObject; 36import com.lidroid.xutils.BitmapUtils; 352 //设置关注作物 353 JSONObject json = JSONObject 354 .parseObject(resultInfo.result); 354 .parseObject(resultInfo.result); 355 // Log.v("zhong","json--"+json); 356 if (json.getString("resultcode").equals("error")) { 359 //解析json对象 360 JSONObject crop = json.getJSONObject("crop"); 361 JSONObject weather = json 362 .getJSONObject("weather "); 363 JSONObject quotation = json 364 .getJSONObject("quotation");KnowFragment.java https://gitlab.com/zwp/Zhonghua | Java | 590 lines
37import com.alibaba.fastjson.JSONArray; 38import com.alibaba.fastjson.JSONObject; 39import com.lidroid.xutils.exception.HttpException; 338 closeProgressDialog(); 339 JSONObject jsonObject = JSONObject 340 .parseObject(resultInfo.result); 340 .parseObject(resultInfo.result); 341 JSONObject json = JSONObject.parseObject(jsonObject 342 .toString()); 411 public void onSuccess(ResponseInfo<String> resultInfo) { 412 JSONObject jsonObject = JSONObject 413 .parseObject(resultInfo.result); 457 .parseObject(resultInfo.result); 458 JSONObject json = JSONObject.parseObject(jsonObject 459 .toString());Soil_Test.java https://gitlab.com/zwp/Zhonghua | Java | 459 lines
28 29import com.alibaba.fastjson.JSON; 30import com.alibaba.fastjson.JSONObject; 33import com.android.volley.error.VolleyError; 34import com.android.volley.request.FastJsonRequest; 35import com.lidroid.xutils.HttpUtils; 301 // Toast.LENGTH_SHORT).show(); 302 JSONObject resultcode = JSON 303 .parseObject(responseInfo.result); 362 Logger.e("No1s"); 363 FastJsonRequest<ShengFenModel> fastJson = new FastJsonRequest<ShengFenModel>( 364 Method.POST, URLAddress.SomeAreaURL, ShengFenModel.class, null, 402 }); 403 Logger.e("No4" + fastJson); 404 RequestManager.addRequest(fastJson, this);Qixiang.java https://gitlab.com/zwp/Zhonghua | Java | 612 lines
34 35import com.alibaba.fastjson.JSON; 36import com.amap.api.location.AMapLocation; 243 //使用Volley框架获取信息 244 FastJsonRequest<TAwss> fastJson = new FastJsonRequest<TAwss>( 245 Method.POST, URLAddress.TAwssURL, TAwss.class, null, map, 340 private void initDingWei() { 341 String shuju = getJson("siteInfo.json");// 把文件中的json信息读取为json数据 342 String a = new String(shuju); 404 for (int i = 0; i < size; i++) { 405 JSONObject o = cityArray.getJSONObject(i); 406 if (province.indexOf(o.getString("g")) > -1) { 462// Log.i("gxx", "codecity:"+cityCode); 463 jsonObj = HttpUtil.getJSONObjFromUrlByGet(url, false); 464 jsonObjAwss = HttpUtil.getJSONObjFromUrlByGet(urlAwss,PublishQuestion.java https://gitlab.com/zwp/Zhonghua | Java | 572 lines
41 42import com.alibaba.fastjson.JSONObject; 43import com.lidroid.xutils.exception.HttpException; 376 public void onSuccess(ResponseInfo<String> responseInfo) { 377 JSONObject jsonObject = JSONObject.parseObject(responseInfo.result); 378 if (jsonObject.getString("resultcode").equals("ok")) { 378 if (jsonObject.getString("resultcode").equals("ok")) { 379 imgs.append(jsonObject.getString("resultdata")).append(","); 380 int length = imgs.toString().split(",").length; 423 closeProgressDialog(); 424 JSONObject jsonObject = JSONObject.parseObject(responseInfo.result); 425 if (jsonObject.getString("resultcode").equals("ok")) {ModelDeserializer.java https://gitlab.com/xialeizhou/resty | Java | 161 lines
4import cn.dreampie.common.util.Stringer; 5import com.alibaba.fastjson.JSONArray; 6import com.alibaba.fastjson.JSONException; 6import com.alibaba.fastjson.JSONException; 7import com.alibaba.fastjson.JSONObject; 8import com.alibaba.fastjson.parser.DefaultJSONParser; 8import com.alibaba.fastjson.parser.DefaultJSONParser; 9import com.alibaba.fastjson.parser.JSONToken; 10import com.alibaba.fastjson.parser.deserializer.ObjectDeserializer; 112 else 113 ((List<Object>) newblist).add(Jsoner.parseObject(Jsoner.toJSONString(e), returnTypeClass)); 114 } 148 } else { 149 map.put(key, Jsoner.parseObject(Jsoner.toJSONString(obj), returnType)); 150 }BusinessContoller.java https://gitlab.com/jusfoun_wz/catalog | Java | 331 lines
20 21import com.alibaba.fastjson.JSONObject; 22import com.jusfoun.catalog.common.controller.BaseController; 260 List<Business> uList = businessService.findList(rsc); 261 String json = JsonMapper.toJsonString(uList); 262 StringBuffer sb=new StringBuffer(); 279 List<Business> uList = businessService.getBusByBusId(busId); 280 String json = JsonMapper.toJsonString(uList); 281 StringBuffer sb=new StringBuffer(); 301 List<Business> bList = businessService.findListBySubId(sqlMap); 302 String json = JsonMapper.toJsonString(bList); 303 sb.append("{\"total\":").append(total).append(",\"rows\":").append(json).append("}"); 324 List<Business> bList = businessService.findListByRscId(sqlMap); 325 String json = JsonMapper.toJsonString(bList); 326 sb.append("{\"total\":").append(total).append(",\"rows\":").append(json).append("}");