OCR.GetTextAsJSON
-----------------

Queries result as JSON.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [OCR](component_OCR.md) | [13.3](newinversion133.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "OCR.GetTextAsJSON" ) ### Parameters

none

### Result

Returns OK or error.

### Description

Queries result as JSON.  
Must be called after recognition run, e.g. after calling [OCR.GetText](OCRGetText.md) function.  
  
See also [Vision.RecognizeTextJSON](VisionRecognizeTextJSON.md) for macOS/iOS and [WindowsOCR.Result](WindowsOCRResult.md) for Windows text recognition.  
### Examples

Query OCR result:

 Set Field \[ OCR::JSON ; MBS ("OCR.GetTextAsJSON") \]  
<small>  
Example result:   
\[ { "top" : 92 , "left" : 36 , "right" : 96 , "bottom" : 116 , "width" : 60 , "height" : 24 , "bold" : false, "italic" : false, "underlined" : false, "monospace" : false, "serif" : false, "smallcaps" : false, "pointsize" : 7 , "font" : 316 , "text" : "This" }, { "top" : 92 , "left" : 109 , "right" : 129 , "bottom" : 116 , "width" : 20 , "height" : 24 , "bold" : false, "italic" : false, "underlined" : false, "monospace" : false, "serif" : false, "smallcaps" : false, "pointsize" : 7 , "font" : 316 , "text" : "is" }, { "top" : 98 , "left" : 141 , "right" : 156 , "bottom" : 116 , "width" : 15 , "height" : 18 , "bold" : false, "italic" : false, "underlined" : false, "monospace" : false, "serif" : false, "smallcaps" : false, "pointsize" : 7 , "font" : 316 , "text" : "a" } \] </small>### See also

- [OCR.GetText](OCRGetText.md)
- [OCR.GetTextWithCoordinates](OCRGetTextWithCoordinates.md)
- [Vision.RecognizeText](VisionRecognizeText.md)
- [Vision.RecognizeTextJSON](VisionRecognizeTextJSON.md)
- [WindowsOCR.Result](WindowsOCRResult.md)

### Release notes

- **Version 13.3**
    - Added [OCR.GetTextAsJSON](https://www.mbsplugins.eu/OCRGetTextAsJSON.shtml) function.

### Blog Entries

- [New in MBS FileMaker Plugin 13.3](https://www.mbsplugins.de/archive/2023-07-25/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 13.3 für Claris FileMaker](https://www.mbsplugins.de/archive/2023-07-18/Neues_MBS_Plugin_133_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 13.3 for Claris FileMaker](https://www.mbsplugins.de/archive/2023-07-18/MBS_Plugin_133_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.3pr1](https://www.mbsplugins.de/archive/2023-06-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 23th May 2023 , last changed 6th September 2023

  
[OCR.GetText](OCRGetText.md) - [OCR.GetTextWithCoordinates](OCRGetTextWithCoordinates.md)

[HTML Version](OCRGetTextAsJSON.shtml)