API Requests और Responses के लिए JSON फ़ॉर्मैटर
tree view editing के साथ API JSON को फ़ॉर्मैट, validate और inspect करें ताकि diff, resend या document करने से पहले payloads पढ़ने योग्य बन जाएँ।
यह गाइड request और response debugging के लिए है, खासकर तब जब logs में minified JSON, nested errors या pasted Python dict syntax हो।
इसे तब उपयोग करें जब
कोई API payload तकनीकी रूप से valid हो, लेकिन पढ़ने, compare करने या सुरक्षित रूप से edit करने के लिए बहुत dense हो।
पहले क्या जाँचें
values edit करना शुरू करने से पहले payload फ़ॉर्मैट करें, tree view खोलें और top-level keys स्कैन करें।
सामान्य गलती
logs और notes में अक्सर Python dict syntax होता है। live tool उस format को recover करती है ताकि आप उसे जल्दी normalize कर सकें।
minified success response फ़ॉर्मैट करें
पहले payload को pretty-print करें ताकि nested keys में बदलाव दिखाई दें।
{"status":"ok","requestId":"req_123","data":{"id":42,"name":"launch"}}
nested error payload जाँचें
Tree view एक घनी line में स्क्रॉल किए बिना code, message और details ढूँढना आसान बनाती है।
{"error":{"code":"AUTH_EXPIRED","message":"Token expired","details":{"exp":1712732400}}}
Python dict syntax recover करें
payload को वैसा ही पेस्ट करें जैसा वह logs में दिखा था, फिर share या replay करने से पहले उसे normalize करें।
{'status': 'error', 'details': {'scope': 'read:users'}}
resend से पहले request body साफ़ करें
request body को अपने API client में वापस भेजने से पहले formatter से verify करें।
{"name":"launch","metadata":{"env":"staging","featureFlags":["beta"]}}
जब आपको nesting जाँचनी हो, branches compare करनी हों या context खोए बिना एक field edit करनी हो, तब tree view raw text से तेज़ होती है।
- payload पढ़ने योग्य हो जाने पर पुराने और नए responses की तुलना करने के लिए Diff Checker का उपयोग करें।
कई incident notes और shell logs में strict JSON की जगह Python dict formatting होती है। live tool उस structure को recover करती है ताकि आप उसे हाथ से फिर से लिखने के बजाय normalize कर सकें।
- जब payload खुद किसी generic API body के बजाय token claim set हो, तो वापस JWT decoding पर जाएँ।