[#BloombergLP-baljsn-ConvertFromJsonOptions] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::ConvertFromJsonOptions :relfileprefix: ../../ :mrdocs: Options for converting `bdljsn::Json` objects to `bdlat`‐compliant objects. == Synopsis Declared in `<baljsn_convertfromjsonoptions.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class ConvertFromJsonOptions; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/baljsn/ConvertFromJsonOptions/2constructor.adoc[`ConvertFromJsonOptions`] [.small]#[constructor]# | Create an object of type `ConvertFromJsonOptions` having the default value. | xref:BloombergLP/baljsn/ConvertFromJsonOptions/maxDepth.adoc[`maxDepth`] | Return the value of the `maxDepth` attribute of this object. | xref:BloombergLP/baljsn/ConvertFromJsonOptions/print.adoc[`print`] | Format this object to the specified output `stream` at the optionally specified indentation `level` and return a reference to the modifiable `stream`. If `level` is specified, optionally specify `spacesPerLevel`, the number of spaces per indentation level for this and all of its nested objects. Each line is indented by the absolute value of `level * spacesPerLevel`. If `level` is negative, suppress indentation of the first line. If `spacesPerLevel` is negative, suppress line breaks and format the entire output on one line. If `stream` is initially invalid, this operation has no effect. Note that a trailing newline is provided in multiline mode only. | xref:BloombergLP/baljsn/ConvertFromJsonOptions/reset.adoc[`reset`] | Reset this object to the default value (i.e., its value upon default construction). | xref:BloombergLP/baljsn/ConvertFromJsonOptions/setMaxDepth.adoc[`setMaxDepth`] | Set the `maxDepth` attribute of this object to the specified `value`. The behavior is undefined unless `0 <= value`. | xref:BloombergLP/baljsn/ConvertFromJsonOptions/setSkipUnknownElements.adoc[`setSkipUnknownElements`] | Set the `skipUnknownElements` attribute of this object to the specified `value`. | xref:BloombergLP/baljsn/ConvertFromJsonOptions/skipUnknownElements.adoc[`skipUnknownElements`] | Return the value of the `skipUnknownElements` attribute of this object. |=== == Friends [cols="1,4"] |=== | Name| Description | `xref:BloombergLP/baljsn/hashAppend-04d.adoc[BloombergLP::baljsn::hashAppend]` | Pass the specified `object` to the specified `hashAlg`. This function integrates with the `bslh` modular hashing system and effectively provides a `bsl::hash` specialization for `ConvertFromJsonOptions`. | `xref:BloombergLP/baljsn/operator_lshift-06d.adoc[BloombergLP::baljsn::operator<<]` | Format the specified `rhs` to the specified output `stream` and return a reference to the modifiable `stream`. | `xref:BloombergLP/baljsn/operator_not_eq-094.adoc[BloombergLP::baljsn::operator!=]` | Return `true` if the specified `lhs` and `rhs` attribute objects do not have the same value, and `false` otherwise. Two attribute objects do not have the same value if any respective attribute do not have the same value. | `xref:BloombergLP/baljsn/operator_eq-079.adoc[BloombergLP::baljsn::operator==]` | Return `true` if the specified `lhs` and `rhs` attribute objects have the same value, and `false` otherwise. Two attribute objects have the same value if each respective attribute has the same value. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#