Warning: session_start(): open(/var/lib/php/sessions/sess_9t7d60vvvtvl9ht965sp19vq5u, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
isJSON [1031733]

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

1  
sbool isJSON(S s) {
2  
  try {
3  
    ret jsonDecode_quickFail(s) != null;
4  
  } catch e {
5  
    handleHardError(e);
6  
  }
7  
  false;
8  
}

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: 616 / 818
Version history: 5 change(s)
Referenced in: [show references]