Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Aug 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to convert a JSON to bit data?

    Hi,

    I have a JSON which I need to convert into bit data. How implement that? Shoud I use JasonGenerator from Jackson?

    Below is only a snippet of what I have:
    String JSON= "{\"ackRequired\":true,\"msgKey\":\"28CF\"}";

    Thank you.

  • #2
    New to the CF scene
    Join Date
    Aug 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Actually, what I need is to convert from the JSON above to byte.

  • #3
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,983
    Thanks
    56
    Thanked 557 Times in 554 Posts
    Looks to me like you are working in java. This is the javascript forum.

  • #4
    New Coder
    Join Date
    Aug 2014
    Posts
    27
    Thanks
    0
    Thanked 1 Time in 1 Post
    The JSON format doesn't support binary data(a method to escape binary data is to use Base64). There are 94 Unicode characters which can be represented as one byte according to the JSON spec. find out more tutorials from web. you can find your answer


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •