Personal blog address http://dandanlove.com/

JSON-handle

Json-handle is a plugin for Chrome. Recently, I was doing interface encryption, and all the data (request and response) were encrypted data, so FILdder or Charles could not communicate with me to capture and check the packets. Support dynamic zoom, zoom, support all data formats ~!


json-handle.png

Effect:


json-handle.jpg

GitHub address: JsonHandleView

Rely on

Implementation 'com. TZX. Json: jsonhandleview: 1.0.0'Copy the code

use

<? The XML version = "1.0" encoding = "utf-8"? > <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:fillViewport="true" android:orientation="vertical"> <com.dandan.jsonhandleview.library.JsonViewLayout android:id="@+id/jsonView" android:layout_width="match_parent" android:layout_height="wrap_content" /> </FrameLayout>Copy the code
JsonViewLayout jsonViewLayout = findViewById(R.id.jsonView);
jsonViewLayout.bindJson("your json strings." || JSONObject || JSONArray);
Copy the code

Custom style

// Color
jsonViewLayout.setKeyColor()
jsonViewLayout.setObjectKeyColor()
jsonViewLayout.setValueTextColor()
jsonViewLayout.setValueNumberColor()
jsonViewLayout.setValueNullColor()
jsonViewLayout.setValueBooleanColor()
jsonViewLayout.setArrayLengthColor()

// TextSize
jsonViewLayout.setTextSize()
Copy the code

The article here is all about the end, if there are other need to communicate can leave a message!!

To read more articles by the author, check out my personal blog and public account:


The revitalization of book city