java.lang.Object
com.darkcollective.relix.value.internal.JsonValues

public final class JsonValues extends Object
Parses JSON text into the relix Value hierarchy — the boundary at which a nested document becomes native relix data:

A hand-rolled recursive-descent parser (the project avoids third-party JSON dependencies). Malformed input throws JsonValues.JsonParseException.

  • Method Details

    • parse

      public static Value parse(String json)
      Parses a single JSON value (object, array, string, number, boolean, or null).
      Parameters:
      json - the JSON text; must not be null
      Returns:
      the parsed value
      Throws:
      JsonValues.JsonParseException - if json is not well-formed, or has trailing content