100+ results for 'com.alibaba.fast json'

Not the results you expected?

IMMessage.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 275 lines

3 import com.alibaba.fastjson.JSON;

4 import com.alibaba.fastjson.JSONArray;

5 import com.alibaba.fastjson.JSONObject;

47 public static String buildGroupInfo(String paramString1, String paramString2, int paramInt)

48 {

49 JSONObject localJSONObject = new JSONObject();

50 try

51 {

114 }

115

116 public static boolean parseData(JSONObject paramJSONObject, IMMessage paramIMMessage)

117 {

118 if ((paramJSONObject == null) || (paramIMMessage == null))

150 try

151 {

152 JSONObject localJSONObject = (JSONObject)JSON.parse(paramString);

153 String str1 = localJSONObject.getString("msg");

JsonConverter.java (https://gitlab.com/BGCX261/zk-full-demo-git.git) Java · 229 lines

10 import org.hxzon.util.Dom4jUtil;

11

12 import com.alibaba.fastjson.JSON;

13 import com.alibaba.fastjson.JSONArray;

14 import com.alibaba.fastjson.JSONObject;

15

16 public class JsonConverter {

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));

RenderResultAsJsonValve.java (git://github.com/webx/citrus.git) Java · 125 lines

29 import com.alibaba.citrus.service.pipeline.support.AbstractValveDefinitionParser;

30 import com.alibaba.citrus.turbine.TurbineRunData;

31 import com.alibaba.fastjson.JSON;

32 import org.springframework.beans.factory.annotation.Autowired;

33 import org.springframework.beans.factory.support.BeanDefinitionBuilder;

40 * @author Michael Zhou

41 */

42 public class RenderResultAsJsonValve extends AbstractInputOutputValve {

43 private static final String DEFAULT_CONTENT_TYPE = "application/json";

90

91 String javascriptVariable = getJavascriptVariable();

92 boolean outputAsJson = javascriptVariable == null;

93

94 if (outputAsJson) {

101

102 PrintWriter out = response.getWriter();

103 String jsonResult = JSON.toJSONString(resultObject);

104

105 if (outputAsJson) {

SerializeWriter.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 2016 lines

1 package com.alibaba.fastjson.serializer;

2

3 import com.alibaba.fastjson.JSON;

4 import com.alibaba.fastjson.JSONException;

5 import com.alibaba.fastjson.parser.CharTypes;

6 import com.alibaba.fastjson.util.Base64;

7 import com.alibaba.fastjson.util.IOUtils;

8 import java.io.IOException;

9 import java.io.OutputStream;

34 {

35 this.writer = paramWriter;

36 this.features = JSON.DEFAULT_GENERATE_FEATURE;

37 paramWriter = (SoftReference)bufLocal.get();

38 if (paramWriter != null)

JSONWrapper.java (git://github.com/greenlaw110/Rythm.git) Java · 106 lines

28 import com.alibaba.fastjson.JSON;

29 import com.alibaba.fastjson.JSONArray;

30 import com.alibaba.fastjson.JSONObject;

40

41 /**

42 * Construct a JSONWrapper with a JSON string. If the string is not valid JSON, then

43 * a RuntimeException will thrown out

44 *

51 o = JSON.parse(str);

52 } catch (com.alibaba.fastjson.JSONException e) {

53 throw new RuntimeException("Invalid JSON string: " + str);

56 j_ = (JSON) o;

57 } else {

58 throw new RuntimeException("JSON string parse to unknown object type: " + o.getClass());

59 }

60 }

CollectionSerializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 195 lines

12 // Byte code:

13 // 0: aload_1

14 // 1: invokevirtual 27 com/alibaba/fastjson/serializer/JSONSerializer:getWriter ()Lcom/alibaba/fastjson/serializer/SerializeWriter;

15 // 4: astore 7

16 // 6: aload_2

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

37 // 52: aload 6

162 // 330: 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

166 // 337: astore_2

167 // 338: aload_1

168 // 339: aload 4

169 // 341: invokevirtual 136 com/alibaba/fastjson/serializer/JSONSerializer:setContext (Lcom/alibaba/fastjson/serializer/SerialContext;)V

170 // 344: aload_2

171 // 345: athrow

FastJsonHttpResponseHandler.java (https://gitlab.com/chgocn/AndPlug.git) Java · 237 lines

2

3 import android.util.Log;

4 import com.alibaba.fastjson.JSON;

5 import com.alibaba.fastjson.JSONArray;

6 import com.alibaba.fastjson.JSONException;

7 import com.alibaba.fastjson.JSONObject;

35

36 /**

37 * Creates new FastJsonHttpResponseHandler with given JSON String encoding

38 *

39 * @param encoding String encoding to be used when parsing JSON

207 * Boolean, Integer, Long, Double or {@link JSONObject}, see

208 * {@link org.json.JSONTokener#nextValue()}

209 *

210 * @param responseBody

226 jsonString = jsonString.trim();

227 if (jsonString.startsWith("{") || jsonString.startsWith("[")) {

228 // result = new JSONTokener(jsonString).nextValue();

Application.java (git://github.com/WindowsAzure/azure-sdk-for-java.git) Java · 91 lines

4 package com.azure.test;

5

6 import com.alibaba.fastjson.JSON;

7 import com.fasterxml.jackson.core.JsonProcessingException;

44 try {

45 return mapper.writeValueAsString(System.getenv());

46 } catch (JsonProcessingException e) {

47 e.printStackTrace();

48 return "Some error happens";

70 list.add(next.getName());

71 }

72 return JSON.toJSONString(list);

73 }

74

XStreamLoopTest.java (git://github.com/pangwu86/XBlink.git) Java · 165 lines

10 import performance.model.LoopC;

11

12 import com.alibaba.fastjson.JSON;

13 import 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);

ImBlackList.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 155 lines

4 import android.content.SharedPreferences;

5 import android.content.SharedPreferences.Editor;

6 import com.alibaba.fastjson.JSON;

7 import com.alibaba.fastjson.JSONArray;

8 import com.alibaba.fastjson.JSONObject;

9 import fm.qingting.framework.controller.ViewController;

10 import fm.qingting.qtradio.controller.ControllerManager;

66 if ((paramContext == null) || (paramContext.length() == 0))

67 return null;

68 paramContext = (JSONArray)JSONArray.parse(paramContext);

69 if (paramContext != null)

70 while (i < paramContext.size())

71 {

72 JSONObject localJSONObject = paramContext.getJSONObject(i);

73 BlackListItem localBlackListItem = new BlackListItem();

74 localBlackListItem.name = localJSONObject.getString("name");

ASMSerializerFactory.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 1380 lines

1 package com.alibaba.fastjson.serializer;

2

3 import com.alibaba.fastjson.JSON;

4 import com.alibaba.fastjson.JSONException;

5 import com.alibaba.fastjson.annotation.JSONField;

6 import com.alibaba.fastjson.annotation.JSONType;

120 }

121 paramMethodVisitor.visitVarInsn(25, paramContext.var("object"));

122 paramMethodVisitor.visitMethodInsn(184, ASMUtils.getType(FilterUtils.class), "apply", "(Lcom/alibaba/fastjson/serializer/JSONSerializer;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)Z");

123 }

124

736 {

737 paramMethodVisitor.visitVarInsn(25, paramContext.var("object"));

738 paramMethodVisitor.visitMethodInsn(184, ASMUtils.getType(FilterUtils.class), "processKey", "(Lcom/alibaba/fastjson/serializer/JSONSerializer;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;");

739 }

740 }

JSONScanner.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 1167 lines

1 package com.alibaba.fastjson.parser;

2

3 import com.alibaba.fastjson.JSON;

4 import com.alibaba.fastjson.JSONException;

5 import com.alibaba.fastjson.util.Base64;

6 import java.util.ArrayList;

7 import java.util.Calendar;

11 import java.util.TimeZone;

12

13 public final class JSONScanner extends JSONLexerBase

14 {

15 protected static final char[] typeFieldName = ("\"" + JSON.DEFAULT_TYPE_KEY + "\":\"").toCharArray();

19 private final String text;

20

21 public JSONScanner(String paramString)

22 {

23 this(paramString, JSON.DEFAULT_PARSER_FEATURE);

ThreadLocalCache.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 116 lines

1 package com.alibaba.fastjson.util;

2

3 import java.lang.ref.SoftReference;

112

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.2

116 */

BaseHttpClient.java (https://gitlab.com/chgocn/AndPlug.git) Java · 193 lines

2

3 import android.content.Context;

4 import com.alibaba.fastjson.JSON;

5 import com.loopj.android.http.AsyncHttpClient;

6 import com.loopj.android.http.AsyncHttpResponseHandler;

109

110 // [+] post entity

111 public static void postJSON(Context context, String url, JSON json, AsyncHttpResponseHandler responseHandler) {

112 postJSON(false, context, url, json, responseHandler);

113 }

114

115 public static void postJSON(boolean async, Context context, String url, JSON json, AsyncHttpResponseHandler responseHandler) {

116 ByteArrayEntity entity = new ByteArrayEntity(json.toString().getBytes());

123 }

124

125 public static void postJSON(boolean async, String url, JSON json, AsyncHttpResponseHandler responseHandler) {

126 postJSON(async, null, url, json, responseHandler);

CharTypes.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 112 lines

1 package com.alibaba.fastjson.parser;

2

3 public final class CharTypes

108

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.2

112 */

CustomAsyncHttpClient.java (https://gitlab.com/huangjunbin/YNS.git) Java · 117 lines

7 import com.yns.model.RequestModel;

8 import com.yns.model.ResponeModel;

9 import com.yns.util.JsonUtil;

10 import com.yns.util.LogUtil;

11 import com.yns.util.UIHelper;

35 /*

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 *

42 *

83

84 // TODO:解密返回的参数

85 baseModel = JsonUtil.convertJsonToObject(content,

86 ResponeModel.class);

87

ArraySerializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 70 lines

1 package com.alibaba.fastjson.serializer;

2

3 import java.io.IOException;

16 }

17

18 public final void write(JSONSerializer paramJSONSerializer, Object paramObject1, Object paramObject2, Type paramType)

19 throws IOException

20 {

55 paramJSONSerializer.setContext(paramType);

56 }

57 paramJSONSerializer.getObjectWriter(paramObject1.getClass()).write(paramJSONSerializer, paramObject1, Integer.valueOf(i), null);

58 break label194;

59 label179: localSerializeWriter.append(']');

66

67 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

68 * Qualified Name: com.alibaba.fastjson.serializer.ArraySerializer

69 * JD-Core Version: 0.6.2

70 */

SymbolTable.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 256 lines

1 package com.alibaba.fastjson.parser;

2

3 import com.alibaba.fastjson.JSON;

4

5 public class SymbolTable

18 this(256);

19 addSymbol("$ref", 0, 4, "$ref".hashCode());

20 addSymbol(JSON.DEFAULT_TYPE_KEY, 0, 4, JSON.DEFAULT_TYPE_KEY.hashCode());

21 }

22

252

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.2

256 */

CollectionDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 89 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import com.alibaba.fastjson.JSONException;

4 import com.alibaba.fastjson.parser.DefaultJSONParser;

5 import com.alibaba.fastjson.parser.JSONLexer;

6 import java.lang.reflect.ParameterizedType;

7 import java.lang.reflect.Type;

18 public static final CollectionDeserializer instance = new CollectionDeserializer();

19

20 public <T> T deserialze(DefaultJSONParser paramDefaultJSONParser, Type paramType, Object paramObject)

21 {

22 if (paramDefaultJSONParser.getLexer().token() == 8)

85

86 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

87 * Qualified Name: com.alibaba.fastjson.parser.deserializer.CollectionDeserializer

88 * JD-Core Version: 0.6.2

89 */

HttpClient.java (https://bitbucket.org/bindalgangaaram/rc-my-job.git) Java · 91 lines

1 package coo.app.baseline.fax;

2

3 import com.alibaba.fastjson.JSON;

4 import com.ringcentral.RestException;

5

36

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);

40 return request(new Request.Builder().url(url).post(body));

47

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);

51 return request(new Request.Builder().url(url).put(body));

PointSerializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 40 lines

1 package com.alibaba.fastjson.serializer;

2

3 import com.alibaba.fastjson.JSON;

4 import java.awt.Point;

5 import java.io.IOException;

11 public static final PointSerializer instance = new PointSerializer();

12

13 public void write(JSONSerializer paramJSONSerializer, Object paramObject1, Object paramObject2, Type paramType)

14 throws IOException

15 {

16 paramJSONSerializer = paramJSONSerializer.getWriter();

17 paramObject1 = (Point)paramObject1;

18 if (paramObject1 == null)

StackTraceElementDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 212 lines

3 import com.alibaba.fastjson.JSON;

4 import com.alibaba.fastjson.JSONException;

5 import com.alibaba.fastjson.parser.DefaultJSONParser;

7 import com.alibaba.fastjson.parser.JSONLexer;

8 import com.alibaba.fastjson.parser.JSONToken;

9 import java.lang.reflect.Type;

10

16 public <T> T deserialze(DefaultJSONParser paramDefaultJSONParser, Type paramType, Object paramObject)

17 {

18 JSONLexer localJSONLexer = paramDefaultJSONParser.getLexer();

19 if (localJSONLexer.token() == 8)

24 if ((localJSONLexer.token() != 12) && (localJSONLexer.token() != 16))

25 throw new JSONException("syntax error: " + JSONToken.name(localJSONLexer.token()));

26 Type localType = null;

27 Object localObject3 = null;

Opcodes.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 113 lines

1 package com.alibaba.fastjson.asm;

2

3 public abstract interface Opcodes

109

110 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

111 * Qualified Name: com.alibaba.fastjson.asm.Opcodes

112 * JD-Core Version: 0.6.2

113 */

ArrayDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 147 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import com.alibaba.fastjson.JSONArray;

4 import com.alibaba.fastjson.parser.DefaultJSONParser;

5 import com.alibaba.fastjson.parser.JSONLexer;

6 import com.alibaba.fastjson.parser.ParseContext;

18 public static final ArrayDeserializer instance = new ArrayDeserializer();

19

20 private <T> T toObjectArray(DefaultJSONParser paramDefaultJSONParser, Class<?> paramClass, JSONArray paramJSONArray)

21 {

22 if (paramJSONArray == null)

48 {

49 int k = 0;

50 JSONArray localJSONArray = (JSONArray)localObject3;

51 int n = localJSONArray.size();

UTF8Decoder.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 243 lines

1 package com.alibaba.fastjson.util;

2

3 import java.nio.Buffer;

239

240 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

241 * Qualified Name: com.alibaba.fastjson.util.UTF8Decoder

242 * JD-Core Version: 0.6.2

243 */

EnumerationSeriliazer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 134 lines

12 // Byte code:

13 // 0: aload_1

14 // 1: invokevirtual 27 com/alibaba/fastjson/serializer/JSONSerializer:getWriter ()Lcom/alibaba/fastjson/serializer/SerializeWriter;

15 // 4: astore 7

16 // 6: aload_2

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

37 // 52: aload 6

107 // 201: aload_1

108 // 202: aload 4

109 // 204: invokevirtual 98 com/alibaba/fastjson/serializer/JSONSerializer:setContext (Lcom/alibaba/fastjson/serializer/SerialContext;)V

110 // 207: return

111 // 208: astore_2

112 // 209: aload_1

113 // 210: aload 4

114 // 212: invokevirtual 98 com/alibaba/fastjson/serializer/JSONSerializer:setContext (Lcom/alibaba/fastjson/serializer/SerialContext;)V

115 // 215: aload_2

116 // 216: athrow

JsonResponse.java (https://gitlab.com/dannyblue/danny-project.git) Java · 334 lines

3 import com.alibaba.fastjson.JSON;

4 import com.alibaba.fastjson.JSONObject;

5 import com.alibaba.fastjson.serializer.SerializerFeature;

156 result.put("errorCode", 0);

157 result.put("data", object);

158 String jsonString = JSON.toJSONString(result, features);

159 return JSON.parse(jsonString);

223 result.put("errorCode", 0);

224 result.put("data", params);

225 return JSON.parse(JSON.toJSONString(result, features));

226 }

227

314 //消除fastjson对同一对象循环引用的问题

315 String jsonString = JSON.toJSONString(result, features);

316 return JSON.parse(jsonString);

JSONLexer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 97 lines

1 package com.alibaba.fastjson.parser;

2

3 import java.math.BigDecimal;

4 import java.util.Collection;

5

6 public abstract interface JSONLexer

7 {

8 public static final int ARRAY = 2;

93

94 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

95 * Qualified Name: com.alibaba.fastjson.parser.JSONLexer

96 * JD-Core Version: 0.6.2

97 */

ASMJavaBeanDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 117 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import com.alibaba.fastjson.parser.DefaultJSONParser;

4 import com.alibaba.fastjson.parser.JSONLexer;

27 }

28

29 public Object createInstance(DefaultJSONParser paramDefaultJSONParser)

30 {

31 return this.serializer.createInstance(paramDefaultJSONParser, this.serializer.getClazz());

61 public boolean parseField(DefaultJSONParser paramDefaultJSONParser, String paramString, Object paramObject, Type paramType, Map<String, Object> paramMap)

62 {

63 JSONLexer localJSONLexer = paramDefaultJSONParser.getLexer();

64 Object localObject2 = this.serializer.getFieldDeserializerMap();

65 FieldDeserializer localFieldDeserializer = (FieldDeserializer)((Map)localObject2).get(paramString);

88 }

89

90 public Object parseRest(DefaultJSONParser paramDefaultJSONParser, Type paramType, Object paramObject1, Object paramObject2)

91 {

92 return this.serializer.deserialze(paramDefaultJSONParser, paramType, paramObject1, paramObject2);

XSSSecurityFilter.java (https://bitbucket.org/guoj5477/lotter_customers.git) Java · 112 lines

19 import org.slf4j.LoggerFactory;

20

21 import com.alibaba.fastjson.JSON;

22

23 import cn.springboot.common.authority.service.xss.XSSHttpRequestWrapper;

80 log.debug("XSS Security Filter RequestURL:" + httpRequest.getRequestURL().toString());

81 log.debug("param:" + paramStr);

82 log.debug("XSS Security Filter RequestParameter:{}", JSON.toJSONString(httpRequest.getParameterMap()));

83 }

84 // 是否中断操作

DateSerializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 120 lines

1 package com.alibaba.fastjson.serializer;

2

3 import com.alibaba.fastjson.JSON;

4 import com.alibaba.fastjson.util.IOUtils;

15 public static final DateSerializer instance = new DateSerializer();

16

17 public void write(JSONSerializer paramJSONSerializer, Object paramObject1, Object paramObject2, Type paramType)

18 throws IOException

19 {

45 paramJSONSerializer = paramObject1;

46 if (paramObject1 == null)

47 paramJSONSerializer = new SimpleDateFormat(JSON.DEFFAULT_DATE_FORMAT);

48 paramObject2.writeString(paramJSONSerializer.format(paramType));

116

117 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

118 * Qualified Name: com.alibaba.fastjson.serializer.DateSerializer

119 * JD-Core Version: 0.6.2

120 */

CommonRequestUtil.java (https://bitbucket.org/juzhiwiscom/datelove.git) Java · 1138 lines

4 import android.text.TextUtils;

5

6 import com.alibaba.fastjson.JSON;

7 import com.library.utils.ToastUtil;

8 import com.yueai.R;

588 if (!TextUtils.isEmpty(resultJson)) {

589 return JSON.parseObject(resultJson, MyInfo.class);

590 }

591 return null;

644 if (!TextUtils.isEmpty(resultJson)) {

645 return JSON.parseObject(resultJson, MyInfo.class);

646 }

647 return null;

890 if (!TextUtils.isEmpty(resultJson)) {

891 return JSON.parseObject(resultJson, HeadMsgNotice.class);

892 }

893 return null;

CfgUtil.java (https://gitlab.com/BGCX261/zk-full-demo-git.git) Java · 76 lines

17 import org.zkoss.zk.ui.WebApp;

18

19 import com.alibaba.fastjson.JSON;

20

21 public class CfgUtil {

32 String jsonStr = FileUtils.readFileToString(new File(webapp.getRealPath("/WEB-INF/config.json")), "utf8");

33 Object json = JSON.parse(jsonStr);

34 configer = CfgParser.buildCfgValue(info, json, 1000, 1);

LongDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 44 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import com.alibaba.fastjson.parser.DefaultJSONParser;

4 import com.alibaba.fastjson.parser.JSONLexer;

5 import com.alibaba.fastjson.util.TypeUtils;

6 import java.lang.reflect.Type;

7 import java.util.concurrent.atomic.AtomicLong;

12 public static final LongDeserializer instance = new LongDeserializer();

13

14 public <T> T deserialze(DefaultJSONParser paramDefaultJSONParser, Type paramType, Object paramObject)

15 {

16 paramObject = paramDefaultJSONParser.getLexer();

21 paramObject.nextToken(16);

22 }

23 for (paramDefaultJSONParser = Long.valueOf(l); ; paramDefaultJSONParser = TypeUtils.castToLong(paramDefaultJSONParser))

24 {

25 paramObject = paramDefaultJSONParser;

ListSerializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 184 lines

1 package com.alibaba.fastjson.serializer;

2

3 import java.io.IOException;

11 public static final ListSerializer instance = new ListSerializer();

12

13 public final void write(JSONSerializer paramJSONSerializer, Object paramObject1, Object paramObject2, Type paramType)

14 throws IOException

15 {

169 localSerializeWriter.append(']');

170 break;

171 paramJSONSerializer.getObjectWriter(localObject2.getClass()).write(paramJSONSerializer, localObject2, Integer.valueOf(k), (Type)localObject1);

172 }

173 label694: i += 1;

180

181 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

182 * Qualified Name: com.alibaba.fastjson.serializer.ListSerializer

183 * JD-Core Version: 0.6.2

184 */

ArrayListTypeFieldDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 155 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import com.alibaba.fastjson.JSONException;

4 import com.alibaba.fastjson.parser.DefaultJSONParser;

5 import com.alibaba.fastjson.parser.Feature;

6 import com.alibaba.fastjson.parser.JSONLexer;

7 import com.alibaba.fastjson.parser.JSONToken;

8 import com.alibaba.fastjson.parser.ParseContext;

9 import com.alibaba.fastjson.parser.ParserConfig;

10 import com.alibaba.fastjson.util.FieldInfo;

11 import java.lang.reflect.ParameterizedType;

12 import java.lang.reflect.Type;

99 paramDefaultJSONParser = paramCollection + ", type : " + paramType;

100 throw new JSONException(paramDefaultJSONParser);

101 }

102 i += 1;

JSONReaderScanner.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 255 lines

1 package com.alibaba.fastjson.parser;

2

3 import com.alibaba.fastjson.JSON;

4 import com.alibaba.fastjson.JSONException;

5 import com.alibaba.fastjson.util.Base64;

6 import com.alibaba.fastjson.util.IOUtils;

11 import java.lang.ref.SoftReference;

12

13 public final class JSONReaderScanner extends JSONLexerBase

14 {

15 public static final int BUF_INIT_LEN = 8192;

251

252 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

253 * Qualified Name: com.alibaba.fastjson.parser.JSONReaderScanner

254 * JD-Core Version: 0.6.2

255 */

JavaBeanSerializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 254 lines

1 package com.alibaba.fastjson.serializer;

2

3 import com.alibaba.fastjson.JSON;

4 import com.alibaba.fastjson.JSONException;

5 import com.alibaba.fastjson.util.FieldInfo;

6 import com.alibaba.fastjson.util.TypeUtils;

71 }

72

73 protected boolean isWriteClassName(JSONSerializer paramJSONSerializer, Object paramObject1, Type paramType, Object paramObject2)

74 {

75 return paramJSONSerializer.isWriteClassName(paramType, paramObject1);

250

251 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

252 * Qualified Name: com.alibaba.fastjson.serializer.JavaBeanSerializer

253 * JD-Core Version: 0.6.2

254 */

CarNearTrandsFragment.java (https://gitlab.com/Er_Hei/PlayCar.git) Java · 204 lines

14 import android.widget.TextView;

15

16 import com.alibaba.fastjson.JSON;

17 import com.alibaba.fastjson.JSONObject;

MethodWriter.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 213 lines

1 package com.alibaba.fastjson.asm;

2

3 class MethodWriter

209

210 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

211 * Qualified Name: com.alibaba.fastjson.asm.MethodWriter

212 * JD-Core Version: 0.6.2

213 */

JsonUtil.java (https://gitlab.com/huangjunbin/pupu.git) Java · 80 lines

8 import android.util.Log;

9

10 import com.alibaba.fastjson.JSON;

11 import com.alibaba.fastjson.serializer.SerializerFeature;

19 boolean flag = false;

20 try {

21 json = new JSONObject(jsonString);

22 flag = json.getBoolean("result");

31 JSONObject json;

32 try {

33 json = new JSONObject(jsonString);

34 value = json.getJSONArray(key).toString();

62 public static <T> T convertJsonToObject(String json, Class<T> clazz) {

63 try {

64 return JSON.parseObject(json, clazz);

65 } catch (Exception e) {

66 Log.e(TAG, e.toString());

Cluster.java (https://gitlab.com/zxinrong3/smartbalance.git) Java · 139 lines

4 import com.alibaba.fastjson.JSONArray;

5 import com.alibaba.fastjson.JSONObject;

6 import com.google.common.collect.Lists;

7 import com.google.common.collect.Maps;

76 }

77

78 public static Cluster createByJSON(JSONObject json,boolean acend){

79 Cluster cluster=new Cluster(acend);

80 cluster.setName(json.getString(CLUSTER_NAME));

81 cluster.setHighgate(json.getLong(HIGH_GATE));

82 JSONArray array=json.getJSONArray(SERVERS);

83 for(int i=0;i<array.size();i++){

84 Server ship= Server.createByJson(array.getJSONObject(i), cluster.acend);

92 josn.put(CLUSTER_NAME,cluster.getName());

93 josn.put(HIGH_GATE,cluster.getHighgate());

94 JSONArray servers=new JSONArray();

95 josn.put(SERVERS,servers);

96 //many server

FastJsonHelloWorld.java (https://bitbucket.org/slavavedenin/useful-java-links2.git) Java · 67 lines

1 package fastjson;

2

3 import com.alibaba.fastjson.JSON;

4

5 /**

6 * FastJson Hello Place

7 *

8 */

20 // convert to json

21 String jsonString = JSON.toJSONString(human);

22 System.out.println("json " + jsonString); // print "json {"message":"Hi","place":{"name":"World"}}"

24 // convert from json

25 Human newHuman = JSON.parseObject(jsonString, Human.class);

26 newHuman.say(); // print "Hi , World!"

27 }

Base64.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 373 lines

1 package com.alibaba.fastjson.util;

2

3 import java.util.Arrays;

369

370 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

371 * Qualified Name: com.alibaba.fastjson.util.Base64

372 * JD-Core Version: 0.6.2

373 */

NumberDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 75 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import com.alibaba.fastjson.parser.DefaultJSONParser;

4 import com.alibaba.fastjson.parser.JSONLexer;

5 import com.alibaba.fastjson.util.TypeUtils;

6 import java.lang.reflect.Type;

7 import java.math.BigDecimal;

14 public <T> T deserialze(DefaultJSONParser paramDefaultJSONParser, Type paramType, Object paramObject)

15 {

16 JSONLexer localJSONLexer = paramDefaultJSONParser.getLexer();

17 if (localJSONLexer.token() == 2)

71

72 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

73 * Qualified Name: com.alibaba.fastjson.parser.deserializer.NumberDeserializer

74 * JD-Core Version: 0.6.2

75 */

EnumDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 91 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import com.alibaba.fastjson.JSONException;

4 import com.alibaba.fastjson.parser.DefaultJSONParser;

5 import com.alibaba.fastjson.parser.JSONLexer;

6 import java.lang.reflect.Method;

7 import java.lang.reflect.Type;

53 }

54 }

55 catch (JSONException paramDefaultJSONParser)

56 {

57 throw paramDefaultJSONParser;

73 catch (Throwable paramDefaultJSONParser)

74 {

75 throw new JSONException(paramDefaultJSONParser.getMessage(), paramDefaultJSONParser);

76 }

77 paramDefaultJSONParser = paramDefaultJSONParser.parse();

FastJsonJsonView.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 123 lines

1 package com.alibaba.fastjson.support.spring;

2

3 import com.alibaba.fastjson.JSON;

4 import com.alibaba.fastjson.serializer.SerializerFeature;

17 import org.springframework.web.servlet.view.AbstractView;

18

19 public class FastJsonJsonView extends AbstractView

20 {

21 public static final String DEFAULT_CONTENT_TYPE = "application/json";

27 private boolean updateContentLength = false;

28

29 public FastJsonJsonView()

30 {

31 setContentType("application/json");

119

120 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

121 * Qualified Name: com.alibaba.fastjson.support.spring.FastJsonJsonView

122 * JD-Core Version: 0.6.2

123 */

NumberFieldSerializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 40 lines

1 package com.alibaba.fastjson.serializer;

2

3 import com.alibaba.fastjson.util.FieldInfo;

10 }

11

12 public void writeProperty(JSONSerializer paramJSONSerializer, Object paramObject)

13 throws Exception

14 {

17 }

18

19 public void writeValue(JSONSerializer paramJSONSerializer, Object paramObject)

20 throws Exception

21 {

22 paramJSONSerializer = paramJSONSerializer.getWriter();

23 if (paramObject == null)

24 {

ColorDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 99 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import com.alibaba.fastjson.JSONException;

4 import com.alibaba.fastjson.parser.DefaultJSONParser;

5 import com.alibaba.fastjson.parser.JSONLexer;

6 import java.awt.Color;

7 import java.lang.reflect.Type;

12 public static final ColorDeserializer instance = new ColorDeserializer();

13

14 public <T> T deserialze(DefaultJSONParser paramDefaultJSONParser, Type paramType, Object paramObject)

15 {

16 paramDefaultJSONParser = paramDefaultJSONParser.getLexer();

17 if ((paramDefaultJSONParser.token() != 12) && (paramDefaultJSONParser.token() != 16))

18 throw new JSONException("syntax error");

JSONObject.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 360 lines

1 package com.alibaba.fastjson;

2

3 import com.alibaba.fastjson.annotation.JSONField;

4 import com.alibaba.fastjson.parser.ParserConfig;

180 }

181

182 public JSONArray getJSONArray(String paramString)

183 {

184 paramString = this.map.get(paramString);

260 throw new JSONException("illegal setter");

261 localObject = null;

262 JSONField localJSONField = (JSONField)paramMethod.getAnnotation(JSONField.class);

263 paramObject = localObject;

264 if (localJSONField != null)

356

357 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

358 * Qualified Name: com.alibaba.fastjson.JSONObject

359 * JD-Core Version: 0.6.2

360 */

RedisUserService.java (https://bitbucket.org/shiyun3210/jyqp.git) Java · 189 lines

7 import org.apache.commons.lang.StringUtils;

8

9 import com.alibaba.fastjson.JSONObject;

10 import com.zk.netty.enums.GameRoom;

11 import com.zk.netty.redis.db.JedisManager;

48 String str = jedis.get(RedisCommonKey.USERINFO_KEY+uid);

49 if(StringUtils.isNotBlank(str)){

50 return JSONObject.parseObject(str, Map.class);

51 }

52 } catch (Exception e) {

BaseQuery.java (http://java-hiking.googlecode.com/svn/trunk/) Java · 119 lines

4 import java.util.Map;

5

6 import com.alibaba.fastjson.annotation.JSONField;

7

8

9 public class BaseQuery {

10 @JSONField(serialize=false)

11 private Map<String, String> searchData = new HashMap<String, String>();

12 //数据查询范围的开始索引位置

13 @JSONField(serialize=false)

14 private int startIndex;

15 //数据查询范围的结束索引位置

UmengPushIntentService.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 61 lines

4 import android.content.Intent;

5 import android.util.Log;

6 import com.alibaba.fastjson.JSON;

7 import com.alibaba.fastjson.JSONObject;

33 {

34 log(paramIntent);

35 paramIntent = ((JSONObject)JSON.parse(paramIntent)).getJSONObject("body").getJSONObject("custom");

36 this.mTopic = paramIntent.getString("topic");

37 this.mAlias = paramIntent.getString("alias");

JSONToken.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 85 lines

1 package com.alibaba.fastjson.parser;

2

3 public class JSONToken

81

82 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

83 * Qualified Name: com.alibaba.fastjson.parser.JSONToken

84 * JD-Core Version: 0.6.2

85 */

JsonPathHelloWorld.java (https://bitbucket.org/slavavedenin/useful-java-links2.git) Java · 69 lines

1 package fastjson;

2

3

4 import com.alibaba.fastjson.JSON;

5 import com.alibaba.fastjson.JSONPath;

6

7 /**

8 * Json Path Hello World

9 *

10 */

22 // convert to json and from json

23 String jsonString = JSON.toJSONString(human);

24 Human newHuman = JSON.parseObject(jsonString, Human.class);

ASMClassLoader.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 63 lines

1 package com.alibaba.fastjson.util;

2

3 import com.alibaba.fastjson.JSON;

4 import java.security.AccessController;

5 import java.security.PrivilegedAction;

27 try

28 {

29 localClassLoader.loadClass(JSON.class.getName());

30 return localClassLoader;

31 }

59

60 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

61 * Qualified Name: com.alibaba.fastjson.util.ASMClassLoader

62 * JD-Core Version: 0.6.2

63 */

ListResolveFieldDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 52 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import com.alibaba.fastjson.JSONArray;

4 import com.alibaba.fastjson.parser.DefaultJSONParser;

5 import com.alibaba.fastjson.util.TypeUtils;

6 import java.lang.reflect.Array;

7 import java.lang.reflect.Type;

15 private final DefaultJSONParser parser;

16

17 public ListResolveFieldDeserializer(DefaultJSONParser paramDefaultJSONParser, List paramList, int paramInt)

18 {

19 super(null, null);

23 }

24

25 public void parseField(DefaultJSONParser paramDefaultJSONParser, Object paramObject, Type paramType, Map<String, Object> paramMap)

26 {

27 }

ParseContext.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 62 lines

1 package com.alibaba.fastjson.parser;

2

3 import java.lang.reflect.Type;

58

59 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

60 * Qualified Name: com.alibaba.fastjson.parser.ParseContext

61 * JD-Core Version: 0.6.2

62 */

JSONReader.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 313 lines

1 package com.alibaba.fastjson;

2

3 import com.alibaba.fastjson.parser.DefaultJSONParser;

4 import com.alibaba.fastjson.parser.Feature;

5 import com.alibaba.fastjson.parser.JSONLexer;

6 import com.alibaba.fastjson.parser.JSONReaderScanner;

18 private final DefaultJSONParser parser;

19

20 public JSONReader(DefaultJSONParser paramDefaultJSONParser)

21 {

22 this.parser = paramDefaultJSONParser;

309

310 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

311 * Qualified Name: com.alibaba.fastjson.JSONReader

312 * JD-Core Version: 0.6.2

313 */

ChatImg.java (https://gitlab.com/Er_Hei/PlayCar.git) Java · 124 lines

3 import java.io.Serializable;

4

5 import com.alibaba.fastjson.JSONObject;

6

7 public class ChatImg implements Serializable{

47 public static ChatImg getInfo(String json) {

48 try {

49 return JSONObject.toJavaObject(JSONObject.parseObject(json),

50 ChatImg.class);

51 } catch (Exception e) {

56

57 public static String getInfo(ChatImg info) {

58 String json = JSONObject.toJSON(info).toString();

59 return json;

CharacterSerializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 33 lines

1 package com.alibaba.fastjson.serializer;

2

3 import java.io.IOException;

9 public static final CharacterSerializer instance = new CharacterSerializer();

10

11 public void write(JSONSerializer paramJSONSerializer, Object paramObject1, Object paramObject2, Type paramType)

12 throws IOException

13 {

14 paramJSONSerializer = paramJSONSerializer.getWriter();

15 paramObject1 = (Character)paramObject1;

16 if (paramObject1 == null)

29

30 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

31 * Qualified Name: com.alibaba.fastjson.serializer.CharacterSerializer

32 * JD-Core Version: 0.6.2

33 */

ByteArraySerializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 32 lines

1 package com.alibaba.fastjson.serializer;

2

3 import java.io.IOException;

9 public static ByteArraySerializer instance = new ByteArraySerializer();

10

11 public final void write(JSONSerializer paramJSONSerializer, Object paramObject1, Object paramObject2, Type paramType)

12 throws IOException

13 {

14 paramJSONSerializer = paramJSONSerializer.getWriter();

15 if (paramObject1 == null)

16 {

28

29 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

30 * Qualified Name: com.alibaba.fastjson.serializer.ByteArraySerializer

31 * JD-Core Version: 0.6.2

32 */

AppendableSerializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 32 lines

1 package com.alibaba.fastjson.serializer;

2

3 import java.io.IOException;

9 public static final AppendableSerializer instance = new AppendableSerializer();

10

11 public void write(JSONSerializer paramJSONSerializer, Object paramObject1, Object paramObject2, Type paramType)

12 throws IOException

13 {

14 if (paramObject1 == null)

15 {

16 paramJSONSerializer = paramJSONSerializer.getWriter();

17 if (paramJSONSerializer.isEnabled(SerializerFeature.WriteNullStringAsEmpty))

28

29 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

30 * Qualified Name: com.alibaba.fastjson.serializer.AppendableSerializer

31 * JD-Core Version: 0.6.2

32 */

RedisRoomService.java (https://bitbucket.org/shiyun3210/jyqp.git) Java · 320 lines

8 import redis.clients.jedis.params.sortedset.ZAddParams;

9

10 import com.alibaba.fastjson.JSONObject;

11 import com.zk.netty.enums.GameRoom;

12 import com.zk.netty.redis.db.JedisManager;

95 jedis.zadd(roomListKey, 1, roomKey);

96 //将用户加入游戏房间

97 jedis.zadd(roomKey, uid,JSONObject.toJSONString(user));

98 //标记用户在当前房间 座位号

99 RedisUserService.setUserInRoom(uid+"", roomKey);

106 double result = jedis.zincrby(roomListKey, 1, roomKey);

107 if(result<=4){

108 jedis.zadd(roomKey, uid, JSONObject.toJSONString(user));

109 RedisUserService.setUserInRoom(uid+"", roomKey);

110 returnRoomKey = roomKey;

SessionServiceImpl.java (http://java-hiking.googlecode.com/svn/trunk/) Java · 100 lines

12 import org.springframework.stereotype.Service;

13

14 import com.alibaba.fastjson.JSON;

15 import com.fdhay.authcenter.proxy.domain.User;

16 import com.fdhay.authcenter.proxy.service.UserService;

42 // this.addLoginUser(cookie, user);

43 // }

44 return JSON.parseObject(userJson, User.class);

45 }catch(Exception e){

46 logger.error(e);

54 String redisMapKey = getRedisMapKeyForLoginUser(cookie);

55 RedisMap<String, String> map = redisService.getRedisMap(redisMapKey);

56 map.put(cookie, JSON.toJSONString(user));

57 int timeout = Integer.parseInt(REDIS_LOGIN_USER_TIMEOUT_MINUTES);

58 map.expire(timeout, TimeUnit.MINUTES);

ErrorCode.java (https://gitlab.com/Er_Hei/PlayCar.git) Java · 174 lines

9 import android.widget.Toast;

10

11 import com.alibaba.fastjson.JSON;

12 import com.alibaba.fastjson.JSONObject;

81

82 try {

83 JSONObject jsonObject = JSON.parseObject(result);

84 int errorCode = jsonObject.getIntValue("error");

112 public static String getData(String t){

113 try {

114 JSONObject jsonObject = JSON.parseObject(t);

115 return jsonObject.getString("data");

150 }

151 try {

152 JSONObject jsonObject = JSON.parseObject(t);

153 int errorCode = jsonObject.getIntValue("error");

AtomicLongSerializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 22 lines

1 package com.alibaba.fastjson.serializer;

2

3 import java.io.IOException;

10 public static final AtomicLongSerializer instance = new AtomicLongSerializer();

11

12 public void write(JSONSerializer paramJSONSerializer, Object paramObject1, Object paramObject2, Type paramType)

13 throws IOException

14 {

15 paramJSONSerializer.getWriter().writeLong(((AtomicLong)paramObject1).get());

16 }

17 }

18

19 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

20 * Qualified Name: com.alibaba.fastjson.serializer.AtomicLongSerializer

21 * JD-Core Version: 0.6.2

22 */

JSONObjectDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 25 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import com.alibaba.fastjson.parser.DefaultJSONParser;

4 import java.lang.reflect.Type;

5

7 implements ObjectDeserializer

8 {

9 public static final JSONObjectDeserializer instance = new JSONObjectDeserializer();

10

11 public <T> T deserialze(DefaultJSONParser paramDefaultJSONParser, Type paramType, Object paramObject)

21

22 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

23 * Qualified Name: com.alibaba.fastjson.parser.deserializer.JSONObjectDeserializer

24 * JD-Core Version: 0.6.2

25 */

AccessRecordService.java (https://bitbucket.org/sichuangzixun/serviceschedule.git) Java · 41 lines

1 package com.sichuang.schedule.service.impl;

2

3 import com.alibaba.fastjson.JSON;

4 import com.sichuang.schedule.controller.BaseController;

5 import com.sichuang.schedule.dao.AccessRecordMapper;

26 AccessRecord accessRecord = new AccessRecord();

27 accessRecord.setAccessUrl(request.getRequestURI());

28 String param = JSON.toJSONString(request.getParameterMap());

29 if(param.length() > 255){

30 param = param.substring(0,255);

ReferenceDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 38 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import com.alibaba.fastjson.parser.DefaultJSONParser;

4 import java.lang.ref.SoftReference;

5 import java.lang.ref.WeakReference;

13 public static final ReferenceDeserializer instance = new ReferenceDeserializer();

14

15 public <T> T deserialze(DefaultJSONParser paramDefaultJSONParser, Type paramType, Object paramObject)

16 {

17 paramType = (ParameterizedType)paramType;

18 paramDefaultJSONParser = paramDefaultJSONParser.parseObject(paramType.getActualTypeArguments()[0]);

19 paramType = paramType.getRawType();

20 if (paramType == AtomicReference.class)

IdentityHashMap.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 78 lines

1 package com.alibaba.fastjson.util;

2

3 public class IdentityHashMap<K, V>

74

75 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

76 * Qualified Name: com.alibaba.fastjson.util.IdentityHashMap

77 * JD-Core Version: 0.6.2

78 */

InetSocketAddressDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 66 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import com.alibaba.fastjson.JSONException;

4 import com.alibaba.fastjson.parser.DefaultJSONParser;

5 import com.alibaba.fastjson.parser.JSONLexer;

6 import java.lang.reflect.Type;

7 import java.net.InetAddress;

13 public static final InetSocketAddressDeserializer instance = new InetSocketAddressDeserializer();

14

15 public <T> T deserialze(DefaultJSONParser paramDefaultJSONParser, Type paramType, Object paramObject)

16 {

17 paramObject = paramDefaultJSONParser.getLexer();

62

63 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

64 * Qualified Name: com.alibaba.fastjson.parser.deserializer.InetSocketAddressDeserializer

65 * JD-Core Version: 0.6.2

66 */

ObjectFieldSerializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 115 lines

1 package com.alibaba.fastjson.serializer;

2

3 import com.alibaba.fastjson.annotation.JSONField;

4 import com.alibaba.fastjson.util.FieldInfo;

19 {

20 super(paramFieldInfo);

21 paramFieldInfo = (JSONField)paramFieldInfo.getAnnotation(JSONField.class);

22 if (paramFieldInfo != null)

23 {

50 }

51

52 public void writeProperty(JSONSerializer paramJSONSerializer, Object paramObject)

53 throws Exception

54 {

111

112 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

113 * Qualified Name: com.alibaba.fastjson.serializer.ObjectFieldSerializer

114 * JD-Core Version: 0.6.2

115 */

NotificationDisplayHelper.java (https://bitbucket.org/psjay/ants-bookbase.git) Java · 163 lines

1 package com.jieshuhuiyou.views;

2

3 import com.alibaba.fastjson.JSON;

4 import com.jieshuhuiyou.entity.Notification;

5 import com.jieshuhuiyou.entity.notifications.AcceptBorrowRequestNotification;

49 private String newBorrowRequestNotificationToHTML() {

50

51 NewBorrowRequestNotification n = JSON.parseObject(notification.getJsonContent()

52 , NewBorrowRequestNotification.class);

53

61 private String acceptBorrowRequestNotificationToHTML() {

62

63 AcceptBorrowRequestNotification n = JSON.parseObject(notification.getJsonContent()

64 , AcceptBorrowRequestNotification.class);

65

DateDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 105 lines

7

8 // ERROR //

9 protected <T> T cast(com.alibaba.fastjson.parser.DefaultJSONParser paramDefaultJSONParser, java.lang.reflect.Type paramType, java.lang.Object paramObject1, java.lang.Object paramObject2)

10 {

11 // Byte code:

42 // 65: aconst_null

43 // 66: areturn

44 // 67: new 40 com/alibaba/fastjson/parser/JSONScanner

45 // 70: dup

46 // 71: aload_2

56 // 91: astore_1

57 // 92: aload_3

58 // 93: invokevirtual 60 com/alibaba/fastjson/parser/JSONScanner:close ()V

59 // 96: aload_1

60 // 97: areturn

CharArrayDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 48 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import com.alibaba.fastjson.JSON;

4 import com.alibaba.fastjson.parser.DefaultJSONParser;

5 import com.alibaba.fastjson.parser.JSONLexer;

6 import java.lang.reflect.Type;

7

13 public static <T> T deserialze(DefaultJSONParser paramDefaultJSONParser)

14 {

15 JSONLexer localJSONLexer = paramDefaultJSONParser.getLexer();

16 if (localJSONLexer.token() == 4)

29 if (paramDefaultJSONParser == null)

30 return null;

31 return JSON.toJSONString(paramDefaultJSONParser).toCharArray();

32 }

33

CustomAsyncHttpClient.java (https://gitlab.com/huangjunbin/Base.git) Java · 160 lines

36 final CustomAsyncResponehandler responseHandler) {

37 RequestParams newParams = new RequestParams();

38 com.alibaba.fastjson.JSONObject jsonObject = new com.alibaba.fastjson.JSONObject();

39 for (BasicNameValuePair param : requestModel.getParams()

40 .getParamsList()) {

80

81 // TODO:解密返回的参数

82 baseModel = JsonUtil.convertJsonToObject(content,

83 ResponeModel.class);

84

123 }

124 } else {

125 baseModel.setResult(JsonUtil.convertJsonToObject(

126 baseModel.getData(),

127 requestModel.getCls()));

FieldInfo.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 297 lines

1 package com.alibaba.fastjson.util;

2

3 import com.alibaba.fastjson.annotation.JSONField;

4 import java.lang.annotation.Annotation;

5 import java.lang.reflect.Field;

238 {

239 Object localObject1 = null;

240 Object localObject2 = (JSONField)getAnnotation(JSONField.class);

241 if (localObject2 != null)

242 {

293

294 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

295 * Qualified Name: com.alibaba.fastjson.util.FieldInfo

296 * JD-Core Version: 0.6.2

297 */

SPUtils.java (https://gitlab.com/yubaokang/RedEnvelope.git) Java · 141 lines

4 import android.content.SharedPreferences;

5

6 import com.alibaba.fastjson.JSON;

7

8 import java.lang.reflect.Field;

96 public static void saveObjectToJson(Context context, String key, Object object) {

97 String json = JSON.toJSONString(object);

98 setParam(context, key, json);

103 if (!json.isEmpty()) {

104 return JsonUtil.getObj(json, clz);

105 }

106 return null;

114 */

115 public static void saveObject(Context context, Object object) {

116 String json = JSON.toJSONString(object);

117 Map<String, String> map = JsonUtil.getMapStr(json);

JsonUtil.java (https://gitlab.com/yubaokang/Basic.git) Java · 119 lines

8 import android.text.TextUtils;

9

10 import com.alibaba.fastjson.JSON;

11 import com.alibaba.fastjson.TypeReference;

46 if (!TextUtils.isEmpty(json)) {

47 try {

48 list = JSON.parseArray(json, cls);

49 } catch (Exception e) {

50 e.printStackTrace();

93 if (!TextUtils.isEmpty(json)) {

94 try {

95 list = JSON.parseObject(json, new TypeReference<List<Map<String, Object>>>() {

96 });

97 } catch (Exception e) {

109 if (!TextUtils.isEmpty(json)) {

110 try {

111 list = JSON.parseObject(json, new TypeReference<List<Map<String, String>>>() {

112 });

113 } catch (Exception e) {

memcachedHelper.java (https://bitbucket.org/psjay/ants-bookbase.git) Java · 111 lines

3 import java.util.Date;

4

5 import com.alibaba.fastjson.annotation.JSONType;

6 import com.danga.MemCached.MemCachedClient;

7 import com.danga.MemCached.SockIOPool;

JsonUtil.java (https://gitlab.com/BGCX261/zhoukui-java-xltc-svn-to-git.git) Java · 116 lines

9 import com.alibaba.fastjson.JSON;

10 import com.alibaba.fastjson.serializer.JSONSerializer;

11 import com.alibaba.fastjson.serializer.PropertyFilter;

12 import com.alibaba.fastjson.serializer.SerializeWriter;

13

14 /**

28 public static final String serialize(Object o) {

29 try {

30 String jsonStr = JSON.toJSONString(o);

31 log.debug("The jsonstr is:" + jsonStr);

68 };

69 SerializeWriter out = new SerializeWriter();

70 JSONSerializer serializer = new JSONSerializer(out);

71 serializer.getPropertyFilters().add(filter);

72 serializer.write(o);

JSONWriter.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 219 lines

1 package com.alibaba.fastjson;

2

3 import com.alibaba.fastjson.serializer.JSONSerializer;

4 import com.alibaba.fastjson.serializer.SerializeWriter;

5 import com.alibaba.fastjson.serializer.SerializerFeature;

6 import java.io.Closeable;

7 import java.io.Flushable;

14 private JSONStreamContext context;

15 private JSONSerializer serializer;

16 private SerializeWriter writer;

17

215

216 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

217 * Qualified Name: com.alibaba.fastjson.JSONWriter

218 * JD-Core Version: 0.6.2

219 */

FieldWriter.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 46 lines

1 package com.alibaba.fastjson.asm;

2

3 final class FieldWriter

42

43 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

44 * Qualified Name: com.alibaba.fastjson.asm.FieldWriter

45 * JD-Core Version: 0.6.2

46 */

ByteVector.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 145 lines

1 package com.alibaba.fastjson.asm;

2

3 public class ByteVector

141

142 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

143 * Qualified Name: com.alibaba.fastjson.asm.ByteVector

144 * JD-Core Version: 0.6.2

145 */

IntegerFieldDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 60 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import com.alibaba.fastjson.parser.DefaultJSONParser;

4 import com.alibaba.fastjson.parser.JSONLexer;

5 import com.alibaba.fastjson.parser.ParserConfig;

6 import com.alibaba.fastjson.util.FieldInfo;

7 import com.alibaba.fastjson.util.TypeUtils;

21 }

22

23 public void parseField(DefaultJSONParser paramDefaultJSONParser, Object paramObject, Type paramType, Map<String, Object> paramMap)

24 {

25 paramType = paramDefaultJSONParser.getLexer();

48 paramMap.put(this.fieldInfo.getName(), paramDefaultJSONParser);

49 return;

50 paramDefaultJSONParser = TypeUtils.castToInt(paramDefaultJSONParser.parse());

51 }

52 }

TimeDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 71 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import com.alibaba.fastjson.JSONException;

4 import com.alibaba.fastjson.parser.DefaultJSONParser;

5 import com.alibaba.fastjson.parser.JSONLexer;

6 import com.alibaba.fastjson.parser.JSONScanner;

14 public static final TimeDeserializer instance = new TimeDeserializer();

15

16 public <T> T deserialze(DefaultJSONParser paramDefaultJSONParser, Type paramType, Object paramObject)

17 {

18 paramType = paramDefaultJSONParser.getLexer();

67

68 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

69 * Qualified Name: com.alibaba.fastjson.parser.deserializer.TimeDeserializer

70 * JD-Core Version: 0.6.2

71 */

WebConfig.java (https://gitlab.com/doctorwho1986/doctor.git) Java · 131 lines

27 import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;

28 import com.alibaba.fastjson.support.spring.FastJsonJsonView;

29

30 /**

69 @Override

70 public void extendMessageConverters(List<HttpMessageConverter<?>> converters) {

71 converters.add(new FastJsonHttpMessageConverter());

72 }

73

102 contentNegotiationManagerFactoryBean.setFavorParameter(false);

103

104 // contentNegotiationManagerFactoryBean.addMediaType("json", MediaType.APPLICATION_JSON);

105 // contentNegotiationManagerFactoryBean.addMediaType("html", MediaType.TEXT_HTML);

106 // contentNegotiationManagerFactoryBean.setDefaultContentType(MediaType.APPLICATION_JSON);

126 contentNegotiatingViewResolver.setViewResolvers(Arrays.asList(thymeleafViewResolver));

127

128 contentNegotiatingViewResolver.setDefaultViews(Arrays.asList(new FastJsonJsonView()));

129 return contentNegotiatingViewResolver;

130 }

JSONLibDataFormatSerializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 37 lines

1 package com.alibaba.fastjson.serializer;

2

3 import com.alibaba.fastjson.JSONObject;

4 import java.io.IOException;

5 import java.lang.reflect.Type;

9 implements ObjectSerializer

10 {

11 public void write(JSONSerializer paramJSONSerializer, Object paramObject1, Object paramObject2, Type paramType)

12 throws IOException

13 {

33

34 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

35 * Qualified Name: com.alibaba.fastjson.serializer.JSONLibDataFormatSerializer

36 * JD-Core Version: 0.6.2

37 */

ColorSerializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 43 lines

1 package com.alibaba.fastjson.serializer;

2

3 import com.alibaba.fastjson.JSON;

4 import java.awt.Color;

5 import java.io.IOException;

11 public static final ColorSerializer instance = new ColorSerializer();

12

13 public void write(JSONSerializer paramJSONSerializer, Object paramObject1, Object paramObject2, Type paramType)

14 throws IOException

15 {

16 paramJSONSerializer = paramJSONSerializer.getWriter();

17 paramObject1 = (Color)paramObject1;

18 if (paramObject1 == null)

QiniuService.java (https://bitbucket.org/xiaoyang0112/sourcetree.git) Java · 68 lines

1 package com.nowcoder.service;

2

3 import com.alibaba.fastjson.JSONObject;

4 import com.nowcoder.util.ToutiaoUtil;

5 import com.qiniu.common.QiniuException;

54 Response res = uploadManager.put(file.getBytes(), fileName, getUpToken());

55 //打印返回的信息

56 if (res.isOK() && res.isJson()) {

57 return QINIU_IMAGE_DOMAIN + JSONObject.parseObject(res.bodyString()).get("key");

Item.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 107 lines

1 package com.alibaba.fastjson.asm;

2

3 final class Item

103

104 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

105 * Qualified Name: com.alibaba.fastjson.asm.Item

106 * JD-Core Version: 0.6.2

107 */

TencentWeiboApi.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 171 lines

4 import com.alibaba.fastjson.JSON;

5 import com.alibaba.fastjson.JSONObject;

6 import com.tencent.weibo.sdk.android.api.ShortUrlAPI;

7 import com.tencent.weibo.sdk.android.api.UserAPI;

58 return;

59 paramAnonymousObject = paramAnonymousObject.getObj().toString();

60 JSONObject localJSONObject = (JSONObject)JSON.parse(paramAnonymousObject);

61 if ((localJSONObject != null) && (localJSONObject.getInteger("ret").intValue() == 0))

62 {

63 localJSONObject = localJSONObject.getJSONObject("data");

64 int i = localJSONObject.getInteger("sex").intValue();

68 {

69 Util.saveSharePersistent(this.val$context, "gender", paramAnonymousObject);

70 Util.saveSharePersistent(this.val$context, "name", localJSONObject.getString("name"));

71 Util.saveSharePersistent(this.val$context, "nick", localJSONObject.getString("nick"));

SerializeConfig.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 185 lines

1 package com.alibaba.fastjson.serializer;

2

3 import com.alibaba.fastjson.JSON;

4 import com.alibaba.fastjson.JSONException;

5 import com.alibaba.fastjson.annotation.JSONType;

6 import com.alibaba.fastjson.util.ASMUtils;

7 import com.alibaba.fastjson.util.IdentityHashMap;

8 import java.io.File;

9 import java.io.Serializable;

134 if (((bool1) && (this.asmFactory.isExternalClass(paramClass))) || (paramClass == Serializable.class) || (paramClass == Object.class))

135 bool1 = false;

136 Object localObject = (JSONType)paramClass.getAnnotation(JSONType.class);

137 boolean bool2 = bool1;

138 if (localObject != null)

MyResponse.java (https://bitbucket.org/sichuangzixun/serviceschedule.git) Java · 185 lines

1 package com.sichuang.schedule.common;

2

3 import com.alibaba.fastjson.serializer.SerializerFeature;

4 import com.sichuang.schedule.model.entity.Page;

5

PointDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 82 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import com.alibaba.fastjson.JSON;

4 import com.alibaba.fastjson.JSONException;

5 import com.alibaba.fastjson.parser.DefaultJSONParser;

6 import com.alibaba.fastjson.parser.JSONLexer;

13 public static final PointDeserializer instance = new PointDeserializer();

14

15 public <T> T deserialze(DefaultJSONParser paramDefaultJSONParser, Type paramType, Object paramObject)

16 {

17 paramType = paramDefaultJSONParser.getLexer();

78

79 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

80 * Qualified Name: com.alibaba.fastjson.parser.deserializer.PointDeserializer

81 * JD-Core Version: 0.6.2

82 */

SimpleBean.java (https://gitlab.com/doctorwho1986/doctor.git) Java · 61 lines

7 import org.springframework.stereotype.Component;

8

9 import com.alibaba.fastjson.JSON;

10

11 /**

51 @Override

52 public String toString() {

53 return JSON.toJSONString(this);

54 }

55

CuratorPractice1.java (https://gitlab.com/doctorwho1986/doctor.git) Java · 156 lines

24 import org.slf4j.LoggerFactory;

25

26 import com.alibaba.fastjson.JSON;

27

28 public class CuratorPractice1 {

82 info.put("path", currentData.getPath().toString());

83 info.put("data", new String(currentData.getData(), StandardCharsets.UTF_8));

84 info.put("stat", JSON.toJSONString(currentData.getStat()));

85 }

86

87 LOG.info("{msg:'nodeChanged info : {}'}", JSON.toJSONString(info));

88

89 }

ModelDetail.java (https://bitbucket.org/makoto1990/industrial-display.git) Java · 101 lines

2

3

4 import com.alibaba.fastjson.annotation.JSONField;

5

6 public class ModelDetail {

7 @JSONField(name = "modelName")

8 private String modelName;

9 @JSONField(name = "modelType")

10 private String modelType;

11 @JSONField(name = "modelWeight")

12 private String modelWeight;

13 @JSONField(name = "modelHeight")

StringDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 47 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import com.alibaba.fastjson.parser.DefaultJSONParser;

4 import com.alibaba.fastjson.parser.JSONLexer;

12 public static <T> T deserialze(DefaultJSONParser paramDefaultJSONParser)

13 {

14 JSONLexer localJSONLexer = paramDefaultJSONParser.getLexer();

15 if (localJSONLexer.token() == 4)

21 if (localJSONLexer.token() == 2)

22 {

23 paramDefaultJSONParser = localJSONLexer.numberString();

24 localJSONLexer.nextToken(16);

43

44 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

45 * Qualified Name: com.alibaba.fastjson.parser.deserializer.StringDeserializer

46 * JD-Core Version: 0.6.2

47 */

AbstractDateDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 121 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import com.alibaba.fastjson.JSON;

4 import com.alibaba.fastjson.JSONException;

5 import com.alibaba.fastjson.parser.DefaultJSONParser;

6 import com.alibaba.fastjson.parser.Feature;

7 import com.alibaba.fastjson.parser.JSONLexer;

8 import com.alibaba.fastjson.parser.JSONScanner;

18 public <T> T deserialze(DefaultJSONParser paramDefaultJSONParser, Type paramType, Object paramObject)

19 {

20 JSONLexer localJSONLexer = paramDefaultJSONParser.getLexer();

21 Object localObject1;

22 Object localObject3;

FloatArraySerializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 62 lines

1 package com.alibaba.fastjson.serializer;

2

3 import java.io.IOException;

9 public static final FloatArraySerializer instance = new FloatArraySerializer();

10

11 public final void write(JSONSerializer paramJSONSerializer, Object paramObject1, Object paramObject2, Type paramType)

12 throws IOException

13 {

14 paramJSONSerializer = paramJSONSerializer.getWriter();

15 if (paramObject1 == null)

16 {

58

59 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

60 * Qualified Name: com.alibaba.fastjson.serializer.FloatArraySerializer

61 * JD-Core Version: 0.6.2

62 */

RectangleDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 104 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import com.alibaba.fastjson.JSONException;

4 import com.alibaba.fastjson.parser.DefaultJSONParser;

5 import com.alibaba.fastjson.parser.JSONLexer;

6 import java.awt.Rectangle;

7 import java.lang.reflect.Type;

12 public static final RectangleDeserializer instance = new RectangleDeserializer();

13

14 public <T> T deserialze(DefaultJSONParser paramDefaultJSONParser, Type paramType, Object paramObject)

15 {

16 paramDefaultJSONParser = paramDefaultJSONParser.getLexer();

20 return null;

21 }

22 if ((paramDefaultJSONParser.token() != 12) && (paramDefaultJSONParser.token() != 16))

23 throw new JSONException("syntax error");

FastJsonHttpMessageConverter.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 83 lines

1 package com.alibaba.fastjson.support.spring;

2

3 import com.alibaba.fastjson.JSON;

4 import com.alibaba.fastjson.parser.Feature;

5 import com.alibaba.fastjson.serializer.SerializerFeature;

6 import java.io.ByteArrayOutputStream;

7 import java.io.IOException;

24 public FastJsonHttpMessageConverter()

25 {

26 super(new MediaType[] { new MediaType("application", "json", UTF8), new MediaType("application", "*+json", UTF8) });

27 }

28

79

80 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

81 * Qualified Name: com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter

82 * JD-Core Version: 0.6.2

83 */

JSONStreamContext.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 38 lines

1 package com.alibaba.fastjson;

2

3 class JSONStreamContext

8 static final int StartArray = 1004;

9 static final int StartObject = 1001;

10 private final JSONStreamContext parent;

11 private int state;

12

13 public JSONStreamContext(JSONStreamContext paramJSONStreamContext, int paramInt)

14 {

15 this.parent = paramJSONStreamContext;

34

35 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

36 * Qualified Name: com.alibaba.fastjson.JSONStreamContext

37 * JD-Core Version: 0.6.2

38 */

WritablePractice.java (https://gitlab.com/doctorwho1986/doctor.git) Java · 86 lines

10 import org.apache.hadoop.io.Writable;

11

12 import com.alibaba.fastjson.JSON;

13 import com.google.common.base.Preconditions;

14 /**

78 @Override

79 public String toString() {

80 return JSON.toJSONString(this);

81 }

82

FilterUtils.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 428 lines

1 package com.alibaba.fastjson.serializer;

2

3 import com.alibaba.fastjson.parser.DefaultJSONParser;

4 import com.alibaba.fastjson.parser.deserializer.ExtraProcessor;

5 import com.alibaba.fastjson.parser.deserializer.ExtraTypeProvider;

6 import java.lang.reflect.Type;

7 import java.util.Iterator;

52 public static boolean apply(JSONSerializer paramJSONSerializer, Object paramObject, String paramString, double paramDouble)

53 {

54 paramJSONSerializer = paramJSONSerializer.getPropertyFiltersDirect();

55 if (paramJSONSerializer != null)

200 {

201 return;

202 paramDefaultJSONParser = paramDefaultJSONParser.iterator();

203 while (paramDefaultJSONParser.hasNext())

MovingPic.java (https://gitlab.com/Er_Hei/PlayCar.git) Java · 85 lines

3 import java.io.Serializable;

4

5 import com.alibaba.fastjson.JSONObject;

6 import com.wqdsoft.im.org.json.JSONException;

49

50 try {

51 com.wqdsoft.im.org.json.JSONObject parentJson = new com.wqdsoft.im.org.json.JSONObject(json);

52 if(!parentJson.isNull("typefile")){

70 public static MovingPic getInfo(String json) {

71 try {

72 return JSONObject.parseObject(json, MovingPic.class);//toJavaObject(JSONObject.parseObject(json),

73 //Card.class);

74 } catch (Exception e) {

79

80 public static String getInfo(MovingPic info) {

81 String json = JSONObject.toJSON(info).toString();

82 return json;

MovingVoice.java (https://gitlab.com/Er_Hei/PlayCar.git) Java · 46 lines

3 import java.io.Serializable;

4

5 import com.alibaba.fastjson.JSONObject;

6

7 public class MovingVoice implements Serializable {

31 public static MovingVoice getInfo(String json) {

32 try {

33 return JSONObject.parseObject(json, MovingVoice.class);//toJavaObject(JSONObject.parseObject(json),

34 //Card.class);

35 } catch (Exception e) {

40

41 public static String getInfo(MovingVoice info) {

42 String json = JSONObject.toJSON(info).toString();

43 return json;

Chapter8Code.java (https://gitlab.com/doctorwho1986/doctor.git) Java · 119 lines

11 import java.io.ObjectOutputStream;

12

13 import com.alibaba.fastjson.JSON;

14

15 /**

99 @Override

100 public String toString() {

101 return JSON.toJSONString(this);

102 }

103

SerialWriterStringEncoder.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 72 lines

1 package com.alibaba.fastjson.serializer;

2

3 import com.alibaba.fastjson.JSONException;

4 import com.alibaba.fastjson.util.ThreadLocalCache;

58 {

59 }

60 throw new JSONException(paramArrayOfChar.getMessage(), paramArrayOfChar);

61 }

62

68

69 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

70 * Qualified Name: com.alibaba.fastjson.serializer.SerialWriterStringEncoder

71 * JD-Core Version: 0.6.2

72 */

IOUtils.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 200 lines

1 package com.alibaba.fastjson.util;

2

3 import com.alibaba.fastjson.JSONException;

4 import java.io.Closeable;

5 import java.nio.ByteBuffer;

49 {

50 }

51 throw new JSONException(paramCharsetDecoder.getMessage(), paramCharsetDecoder);

52 }

53

196

197 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

198 * Qualified Name: com.alibaba.fastjson.util.IOUtils

199 * JD-Core Version: 0.6.2

200 */

GetCode.java (https://bitbucket.org/tonyfeng1002/english-crawler.git) Java · 32 lines

1 package net.onemost.english.util;

2

3 import com.alibaba.fastjson.JSON;

4 import com.alibaba.fastjson.JSONObject;

10

11 public static LoginInfo getInfo(Page page) {

12 JSONObject jsonObject = JSON.parseObject(page.getJson().toString());

13

14 jsonObject = jsonObject.getJSONObject("data");

15

16 if(jsonObject == null) {

17 throw new RuntimeException("登录失败");

18 }

20 String tokenCode = jsonObject.getString("tokenCode");

21

22 jsonObject = jsonObject.getJSONObject("user");

23

24 String userCode = jsonObject.getString("userCode");

SessionServiceImpl.java (http://java-hiking.googlecode.com/svn/trunk/) Java · 101 lines

12 import org.springframework.stereotype.Service;

13

14 import com.alibaba.fastjson.JSON;

15 import com.fdhay.authcenter.common.Constants;

16 import com.fdhay.authcenter.domain.User;

32 try{

33 Map<String, String> map = redisService.getRedisMap(getRedisMapKeyForLoginUser(cookie));

34 User user = JSON.parseObject(map.get(cookie), User.class);

35 return user;

36 }catch(Exception e){

45 String redisMapKey = getRedisMapKeyForLoginUser(cookie);

46 RedisMap<String, String> map = redisService.getRedisMap(redisMapKey);

47 map.put(cookie, JSON.toJSONString(user));

48 int timeout = Integer.parseInt(REDIS_LOGIN_USER_TIMEOUT_MINUTES);

49 map.expire(timeout, TimeUnit.MINUTES);

ReportDialog.java (https://bitbucket.org/juzhiwiscom/datelove.git) Java · 138 lines

9 import android.widget.TextView;

10

11 import com.alibaba.fastjson.JSON;

12 import com.datelove.online.International.R;

13 import com.datelove.online.International.bean.BaseModel;

102 .url(IUrlConstant.URL_REPORT)

103 .addHeader("token", PlatformInfoXml.getToken())

104 .addParams("platformInfo", PlatformInfoXml.getPlatformJsonString())

105 .addParams("contentId", reason)// 举报原因

106 .addParams("content", contentMore)// 补充说明

110 @Override

111 public BaseModel parseNetworkResponse(Response response, int id) throws Exception {

112 String resultJson = response.body().string();

113 if (!TextUtils.isEmpty(resultJson)) {

114 return JSON.parseObject(resultJson, BaseModel.class);

115 }

116 return null;

Label.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 71 lines

1 package com.alibaba.fastjson.asm;

2

3 public class Label

67

68 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

69 * Qualified Name: com.alibaba.fastjson.asm.Label

70 * JD-Core Version: 0.6.2

71 */

JavaObjectDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 46 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import com.alibaba.fastjson.parser.DefaultJSONParser;

4 import java.lang.reflect.Array;

5 import java.lang.reflect.GenericArrayType;

14 public static final JavaObjectDeserializer instance = new JavaObjectDeserializer();

15

16 public <T> T deserialze(DefaultJSONParser paramDefaultJSONParser, Type paramType, Object paramObject)

17 {

18 if ((paramType instanceof GenericArrayType))

42

43 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

44 * Qualified Name: com.alibaba.fastjson.parser.deserializer.JavaObjectDeserializer

45 * JD-Core Version: 0.6.2

46 */

ASMUtils.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 129 lines

1 package com.alibaba.fastjson.util;

2

3 import com.alibaba.fastjson.parser.DefaultJSONParser;

4 import com.alibaba.fastjson.parser.JSONLexer;

5 import com.alibaba.fastjson.parser.deserializer.ObjectDeserializer;

6 import java.lang.reflect.Field;

7 import java.lang.reflect.Method;

105 }

106

107 public static void parseArray(Collection paramCollection, ObjectDeserializer paramObjectDeserializer, DefaultJSONParser paramDefaultJSONParser, Type paramType, Object paramObject)

108 {

109 paramObject = paramDefaultJSONParser.getLexer();

125

126 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

127 * Qualified Name: com.alibaba.fastjson.util.ASMUtils

128 * JD-Core Version: 0.6.2

129 */

MapInfo.java (https://gitlab.com/Er_Hei/PlayCar.git) Java · 107 lines

3 import java.io.Serializable;

4

5 import com.alibaba.fastjson.JSONObject;

6 import com.wqdsoft.im.org.json.JSONException;

27 public static MapInfo getInfo(String json) {

28 try {

29 return JSONObject.toJavaObject(JSONObject.parseObject(json),

30 MapInfo.class);

31 } catch (Exception e) {

41 }

42 try {

43 com.wqdsoft.im.org.json.JSONObject json = new com.wqdsoft.im.org.json.JSONObject(reqString);

44 if(json!=null ){

63

64 public static String getInfo(MapInfo info) {

65 String json = JSONObject.toJSON(info).toString();

66 return json;

SelfIntroduceActivity.java (https://bitbucket.org/juzhiwiscom/datelove.git) Java · 124 lines

11 import android.widget.RelativeLayout;

12

13 import com.alibaba.fastjson.JSON;

14 import com.datelove.online.International.R;

15 import com.datelove.online.International.base.BaseTitleActivity;

83 OkHttpUtils.post()

84 .url(IUrlConstant.URL_UPLOAD_QA_WORDS)

85 .addParams("platformInfo", PlatformInfoXml.getPlatformJsonString())

86 .addParams("content", content)

87 .build()

89 @Override

90 public BaseModel parseNetworkResponse(Response response, int id) throws Exception {

91 String resultJson = response.body().string();

92 if (!TextUtils.isEmpty(resultJson)) {

93 return JSON.parseObject(resultJson, BaseModel.class);

94 }

95 return null;

TimestampDeserializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 53 lines

1 package com.alibaba.fastjson.parser.deserializer;

2

3 import com.alibaba.fastjson.JSONException;

4 import com.alibaba.fastjson.parser.DefaultJSONParser;

14 public static final TimestampDeserializer instance = new TimestampDeserializer();

15

16 protected <T> T cast(DefaultJSONParser paramDefaultJSONParser, Type paramType, Object paramObject1, Object paramObject2)

17 {

18 if (paramObject2 == null);

29 }

30 while (paramType.length() == 0);

31 paramDefaultJSONParser = paramDefaultJSONParser.getDateFormat();

32 try

33 {

34 paramDefaultJSONParser = new Timestamp(paramDefaultJSONParser.parse(paramType).getTime());

35 return paramDefaultJSONParser;

AuthorManagerImplTest.java (https://gitlab.com/doctorwho1986/doctor.git) Java · 45 lines

10 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

11

12 import com.alibaba.fastjson.JSON;

13 import com.doctor.entity.Author;

14 import com.doctor.enums.FavouriteSection;

35 public void testQueryById() {

36 Author author = authorManager.queryById(10000L);

37 System.out.println(JSON.toJSONString(author));

38 }

39

ObjectArraySerializer.java (https://gitlab.com/qt-prometheus/qt-prometheus.git) Java · 118 lines

1 package com.alibaba.fastjson.serializer;

2

3 import java.io.IOException;

9 public static final ObjectArraySerializer instance = new ObjectArraySerializer();

10

11 public final void write(JSONSerializer paramJSONSerializer, Object paramObject1, Object paramObject2, Type paramType)

12 throws IOException

13 {

60 paramJSONSerializer.decrementIdent();

61 paramJSONSerializer.println();

62 localSerializeWriter.write(']');

63 return;

114

115 /* Location: C:\Users\User\dex2jar-2.0\dex\qting\classes-dex2jar.jar

116 * Qualified Name: com.alibaba.fastjson.serializer.ObjectArraySerializer

117 * JD-Core Version: 0.6.2

118 */