Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1031733 // isJSON

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (10180L/56K).

sbool isJSON(S s) {
  try {
    ret jsonDecode_quickFail(s) != null;
  } catch e {
    handleHardError(e);
  }
  false;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031733
Snippet name: isJSON
Eternal ID of this version: #1031733/6
Text MD5: 91045e6bc38a204fcd4b7b08d88dd3cf
Transpilation MD5: 02a45edb46de14aaf89955afeacdb94d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-12-11 20:59:12
Source code size: 128 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 122 / 211
Version history: 5 change(s)
Referenced in: [show references]