This is the class extension that allows you to use the .js method on any value
This is the class extension that allows you to use the .js method on any value
Base accessor class for field accessors in objects (seen via case class macro generally).
Base accessor class for field accessors in objects (seen via case class macro generally).
The contains extended run-time info such as field name, field defaults, type access etc.
type of class that owns the fields
type of the field
Base type of all annotations, useful when reflecting annos
in json.FieldAccessor
Base type of all annotations, useful when reflecting annos
in json.FieldAccessor
JSON array as ordered sequence of JValues
JSON numeric value (stored as 64-bit double)
JSON object as ordered pairs of String -> JValue
JSONAccessor is shorthand for a JSONAccessorProducer of generic JValue type
JSONAccessor is shorthand for a JSONAccessorProducer of generic JValue type
Base type for all JSON exceptions.
Base type for all JSON exceptions. All exceptions are based off of case classes.
JSON String value
This is the base type for all JSON values.
This is the base type for all JSON values. JValue includes JS-like methods for handling data in generic JS type. Like JS, some of these methods are convenient but definitely not type safe, and some may result in odd type conversion or exceptions. For type-safe handling of JValues, consider using pattern matching the good ol' scala way.
ObjectAccessor is a JSONAccessor for objects that have named fields.
ObjectAccessor is a JSONAccessor for objects that have named fields. Generally these are mostly seen as auto-generated json.internal.CaseClassObjectAccessor case class accessors. Extend this if you need to make a custom accessor that has named fields.
The base type this accessor is for.
Automatically provides an implicit ObjectAccessor to a class companion object.
Automatically provides an implicit ObjectAccessor to a class companion object. Requires the macro paradise compiler plugin.
Provide field description, useful when reflect on accessors for auto-gen docs, etc
Provide field description, useful when reflect on accessors for auto-gen docs, etc
Marks an internal method/val to be emitted when serialized only, but not needed for construction (basically read only).
Marks an internal method/val to be emitted when serialized only, but not needed for construction (basically read only).
@json.accessor case class Foo(bar: String) { @json.ephemeral def twice = bar + bar }
Provide field name that will be used in the JSON.
Provide field name that will be used in the JSON. Useful when making case classes for existing JSON models that aren't camel cased.
Special NaN JNumber value
JSON null primitive
JS undefined primitive (not actually a JSON primitive)
Package space for all scala-json annotations
Create a simple JValue JSONAccessor out of 'to' and 'from' functions.
Overview
This is the package namespace for everything scala-json ( https://github.com/MediaMath/scala-json/ ). It is recommended to import json._ in your file when working with scala json. The base type for all JSON values is the json.JValue.
JValue Types