Ralf Sternberg
Ralf Sternberg
The functions [atob](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/btoa) and [atob](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/btoa) should be available in the global JS context. The implementations are small, so we should include shims.
WebSockets are supported in 2.0.0. Could you try again with the latest version `npm install tabris@latest`.
Actually, I'm currently working on it ;-) My plan is to start with a built-in pretty-printer that outputs each value on a separate line, indented by 2 spaces, for example:...
A new optional parameter `config` has been added to the `toString` and `writeTo` methods. Example: ``` java jsonValue.toString(WriterConfig.PRETTY_PRINT); jsonValue.writeTo(writer, WriterConfig.PRETTY_PRINT); ``` More fine-grained parameters will be added to WriterConfig. @angelozerr...
Re [Suggestion on twitter](https://twitter.com/JanoschGraef/status/399571179314229249) Thanks, Janosch. I'm afraid that opening up this API would entail requests for other Number types like Integer, Long, Float, Double, etc. and the API would...
Would a method `isInteger` be supposed to indicate whether (a) the value is a number without fractional part (as opposed to `isFloatingPoint`) This would include numbers that are out of...
It seems that you are trying to transform JSON into a _corresponding_ Java model without knowing the "metamodel", i.e. the expected format for each key. You don't use the values...
Good points. I agree that a method `Number asNumber()` would fit better with `isNumber()`. We could parse numbers as `BigDecimal` which extends `Number`. `asInt()`, `asDouble()` etc. could remain as shortcuts...
I thought about that too. The idea of minimal-json is to parse as fast as possible and to keep the footprint of the Java representation as small as possible. So...
As it has been pointed out already, there is a difference between `{"foo": null}` and `{}`. Calling `jsonObject.get("foo")` would return `JsonValue.NULL` in the first case and `null` in the latter...