Questions tagged [minimal-json]

A minimal, but complete JSON parser and writer for Java

Description

A fast and minimal JSON parser and writer for Java. It's not an object mapper, but a bare-bones library that aims at being; minimal (no dependencies) , fast (compared to other JSON parsers), leightweight (minimal memory footprint) & easy to use.

Minimal-json is fully covered by unit tests, and field-tested by the Eclipse RAP project.

Link

minimal-json HitHub

5 questions
2
votes
1 answer

problem parsing JSON file using minimal-json library

I'm having a weird problem that I can't seem to fix. Here's what's up: I'm trying to read the contents of a JSON file so they can be processed and stored into a database. I was told I could only use minimal-json to do so. The problem comes when i…
1
vote
2 answers

JSON parsing without using Java objects

I want to parse JSON data from a RESTful service. Unlike a SOAP-based service, where a service consumer can create stubs and skeleton from WSDL, in the case of the RESTful service, the service consumer gets a raw JSON string. Since the service…
lives
  • 1,243
  • 5
  • 25
  • 61
1
vote
1 answer

Getting a Json information

I am coding in Java and I'm using the minimal-json library. I am trying to get some information from a json text (idk if it's an array). I'm trying to access the "game" value inside "stream", but I always get a crash by nullpointer or a…
0
votes
1 answer

Parsing unnamed nested arrays with minimal-json?

So I'm working on a fairly simple Java program which grabs market data from cryptocurrency exchanges and displays information to the user. I am using the minimal-json library. Here is my current code: public class Market { static JsonArray…
GNUman
  • 1
0
votes
2 answers

How to read a number using minimal-json

I am using minimal-json to parse a JSON stream in Java. This framework has a number of methods to read a number form the stream: asInt(), asLong(), asFloat(), and asDouble(). Assuming that I don't know what is the numerical type of the element, what…
vainolo
  • 6,907
  • 4
  • 24
  • 47